Part Number Hot Search : 
1SM5929B 100PGAA5 A1RKP LBN12015 DSPIC3 1SM5929B 320240 MBR20150
Product Description
Full Text Search
 

To Download MFR4200 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
 MFR4200
Data Sheet
FlexRay Communication Controllers
MFR4200 Rev. 0 8/2005
freescale.com
MFR4200 Data Sheet
MFR4200 Rev. 0 8/2005
To provide the most up-to-date information, the revision of our documents on the World Wide Web will be the most current. Your printed copy may be an earlier revision. To verify that you have the latest information available, refer to http://www.freescale.com The following revision history table summarizes changes contained in this document. For your convenience, the page number designators have been linked to the appropriate location.
Revision History
Date 08/2005 Revision Level 0 Initial release. Description Page Number(s) N/A
MFR4200 Data Sheet, Rev. 0 4 Freescale Semiconductor
Introduction Device Overview MFR4200 FlexRay Communication Controller Dual Output Voltage Regulator (VREG3V3V2) Clocks and Reset Generator Oscillator (OSCV2) Electrical Characteristics Package Information Printed Circuit Board Layout Recommendations MFR4200 Protocol Implementation Document Index of Registers
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 5
MFR4200 Data Sheet, Rev. 0 6 Freescale Semiconductor
Contents
Section Number Title Chapter 1 Introduction
1.1 1.2 1.3 1.4 Audience . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 Additional Reading . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 Terminology . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 Part Number Coding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
Page
Chapter 2 Device Overview
2.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 2.1.1 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 2.1.2 Implementation Details and Constraints . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 2.1.3 Modes of Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 2.1.4 Block Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 2.1.5 Memory Map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 2.1.6 Part ID Assignments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 Signal Descriptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 2.2.1 System Pinout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 2.2.2 Pin Functions and Signal Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 2.2.3 Detailed Signal Descriptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 2.2.4 Power Supply Pins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 System Clock Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44 Modes of Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46 2.4.1 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46 2.4.2 Recommended Pullup/down Resistor Values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46 2.4.3 Host Controller Interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46 2.4.4 External Output Clock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47 2.4.5 MFR4200 Connection to FlexRay Network . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49 2.4.6 Power Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51 Resets and Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51 2.5.1 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51 2.5.2 Resets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51 2.5.3 Interrupt Sources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
2.2
2.3 2.4
2.5
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 7
Section Number
Title
Page
Chapter 3 MFR4200 FlexRay Communication Controller
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53 3.1.1 MFR4200 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53 3.1.2 MFR4200 Implementation Parameters and Constraints . . . . . . . . . . . . . . . . . . . . . . . . . 54 3.2 Memory Map and Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54 3.2.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54 3.2.2 Register Map Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55 3.2.3 Register Descriptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60 3.3 Message Buffer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 141 3.3.1 Message Buffer Layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 141 3.3.2 Message Buffer Field Descriptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143 3.3.3 Message Buffer Slot Status Vector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 146 3.3.4 Message ID . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 149 3.3.5 NMVector Fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 149 3.3.6 Data[0:31] -- Data Fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 149 3.4 Message Buffer Control, Configuration, Status and Filtering Register Set . . . . . . . . . . . . . . . . . 150 3.4.1 Message Buffer Control, Configuration and Status Register . . . . . . . . . . . . . . . . . . . . . 150 3.4.2 Message Buffer Filter Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 158 3.4.3 Receive FIFO Filters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 159 3.5 Message Buffer Handling and Operations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 160 3.5.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 160 3.5.2 Buffer Map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 160 3.5.3 Active Message Buffers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 161 3.5.4 Buffer Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 166 3.5.5 Buffer Reconfiguration in the Normal State of Operation . . . . . . . . . . . . . . . . . . . . . . . 172 3.5.6 Message Buffer Operations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 173 3.6 Receive FIFO Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 186 3.7 Host Controller Interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 189 3.7.1 MFR4200 Asynchronous Memory Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 189 3.7.2 MFR4200 HCS12 Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 192 3.8 External 4/10 MHz Output Clock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 197 3.9 Communication Controller States . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 197 3.9.1 Hard Reset State . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 197 3.9.2 Configuration State . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 199 3.9.3 Diagnosis Stop State . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 200 3.9.4 Normal Active State . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 201 3.9.5 Normal Passive State . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 201 3.10 Debug Port . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 202 3.10.1 Debug Port Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 202 3.10.2 Debug Port Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 203 3.10.3 Debug Port Function Timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 204
MFR4200 Data Sheet, Rev. 0 8 Freescale Semiconductor
3.1
Section Number
Title
Page
Chapter 4 Dual Output Voltage Regulator (VREG3V3V2)
4.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 207 4.1.1 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 207 4.1.2 Modes of Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 207 4.1.3 Block Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 207 External Signal Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 209 4.2.1 VDDR, VSSR -- Regulator Power Input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 209 4.2.2 VDDA, VSSA -- Regulator Reference Supply . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 209 4.2.3 VDD, VSS -- Regulator Output1 (Core Logic) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 210 4.2.4 VDDOSC, VSSOSC -- Regulator Output2 (OSC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 210 4.2.5 VREGEN -- Optional Regulator Enable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 210 Functional Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 210 4.3.1 REG -- Regulator Core . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 210 4.3.2 Full-performance Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 210 4.3.3 POR -- Power On Reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 211 4.3.4 LVR -- Low Voltage Reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 211 4.3.5 CTRL -- Regulator Control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 211 Resets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 211 4.4.1 Power On Reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 211 4.4.2 Low Voltage Reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 211
4.2
4.3
4.4
Chapter 5 Clocks and Reset Generator
5.1 5.2 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 213 5.1.1 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 213 Functional Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 214 5.2.1 MFR4200 Pins Relevant to the CRG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 214 5.2.2 Reset Generation and CLKOUT Control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 214
Chapter 6 Oscillator (OSCV2)
6.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 217 6.1.1 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 217 6.1.2 Modes of Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 217 External Signal Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 217 6.2.1 VDDOSC and VSSOSC -- OSC Operating Voltage, OSC Ground . . . . . . . . . . . . . . . . . . 217 6.2.2 EXTAL and XTAL -- Clock/Crystal Source Pins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 217 Functional Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 218
6.2
6.3
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 9
Section Number
Title Appendix A Electrical Characteristics
Page
A.1 General . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 219 A.1.1 Parameter Classification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 219 A.1.2 Power Supply . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 220 A.1.3 Pins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 220 A.1.4 Current Injection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 221 A.1.5 Absolute Maximum Ratings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 221 A.1.6 ESD Protection and Latch-up Immunity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 222 A.1.7 Operating Conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 223 A.1.8 Power Dissipation and Thermal Characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 223 A.1.9 I/O Characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 226 A.1.10 Supply Currents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 228 A.2 Voltage Regulator (VREG). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 229 A.2.1 Operating Conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 229 A.2.2 Chip Power-up and Voltage Drops . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 230 A.2.3 Output Loads. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 230 A.3 Reset and Oscillator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 231 A.3.1 Startup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 231 A.3.2 Oscillator. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 232 A.4 AMI Interface Timing Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 232 A.5 HCS12 Interface Timing Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 236
Appendix B Package Information
B.1 64-pin LQFP package . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 239
Appendix C Printed Circuit Board Layout Recommendations Appendix C MFR4200 Protocol Implementation Document
C.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 245 C.1.1 Purpose . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 245 C.1.2 Structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 245 C.1.3 References. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 245 C.2 Overall Protocol State Machine . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 246 C.3 Coding and Decoding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 249 C.3.1 Overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 249 C.3.2 NRZ Coding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 249 C.3.3 NRZ Decoding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 250
MFR4200 Data Sheet, Rev. 0 10 Freescale Semiconductor
Section Number
C.4 C.5 C.6 C.7
Title
Page
C.8
C.9 C.10 C.11 C.12
C.3.4 Signal Integrity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 250 Frame Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 250 Media Access Control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 250 Frame and Symbol Processing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 251 Wakeup, Startup, and Reintegration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 251 C.7.1 Introduction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 251 C.7.2 Cluster Wakeup. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 251 C.7.3 Communication Startup and Reintegration. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 251 Clock Synchronization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 252 C.8.1 Introduction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 252 C.8.2 Time Representation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 252 C.8.3 Synchronization Process . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 252 C.8.4 Clock Startup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 252 C.8.5 Time Measurement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 252 C.8.6 Correction Term Calculation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 252 C.8.7 Clock Correction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 253 C.8.8 Sync Frame Configuration Rules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 253 Controller Host Interface. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 253 Device Specific Power Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 253 Bus Guardian Schedule Monitoring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 253 System Parameters and Configuration Constraints. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 254 C.12.1 System Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 254 C.12.2 Configuration Constraints. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 254
Appendix D Index of Registers
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 11
Section Number
Title
Page
MFR4200 Data Sheet, Rev. 0 12 Freescale Semiconductor
List of Figures
Figure Number
Figure 1-1. Figure 2-1. Figure 2-2. Figure 2-3. Figure 2-4. Figure 2-5. Figure 2-6. Figure 2-7. Figure 2-8. Figure 2-9. Figure 2-10. Figure 3-1. Figure 3-2. Figure 3-3. Figure 3-4. Figure 3-5. Figure 3-6. Figure 3-7. Figure 3-8. Figure 3-9. Figure 3-10. Figure 3-11. Figure 3-12. Figure 3-13. Figure 3-14. Figure 3-15. Figure 3-16. Figure 3-17. Figure 3-18. Figure 3-19. Figure 3-20. Figure 3-21.
Title
Page
Order Part Number Coding. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 MFR4200 Block Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 Pin Assignments for MFR4200 in 64-pin LQFP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 Pierce Oscillator Connections. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42 External Clock Connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 Clock Connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 CLKOUT Generation During Power-on Reset. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47 CLKOUT Generation during Low Voltage Reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48 CLKOUT Generation During External Hard Reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49 Example: Connecting a FlexRay Optical/Electrical PHY to the MFR4200. . . . . . . . . . . 50 Example: Connecting an RS485 PHY to the MFR4200. . . . . . . . . . . . . . . . . . . . . . . . . . 50 Key to Register Diagrams. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61 Module Version Register 0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62 Module Version Register 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62 Magic Number Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63 Module Configuration Register 0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64 Module Configuration Register 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66 Host Interface Pins Drive Strength Register. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67 Physical Layer Pins Drive Strength Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68 Host Interface Pins Pullup/down Enable Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68 Host Interface Pins Pullup/down Control Register. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69 Physical Layer Pins Pullup/down Enable Register. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69 Physical Layer Pins Pullup/down Control Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70 Voltage Regulator Status Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70 Bit Duration Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71 Delay Compensation Channel A Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72 Delay Compensation Channel B Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72 Cluster Drift Damping Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73 Maximum Sync Frames Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73 Nominal Macrotick Length Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74 Microticks Per Cycle Low Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74 Microticks Per Cycle High Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
MFR4200 Data Sheet, Rev. 0
Freescale Semiconductor
13
Figure Number
Figure 3-22. Figure 3-23. Figure 3-24. Figure 3-25. Figure 3-26. Figure 3-27. Figure 3-28. Figure 3-29. Figure 3-30. Figure 3-31. Figure 3-32. Figure 3-33. Figure 3-34. Figure 3-35. Figure 3-36. Figure 3-37. Figure 3-38. Figure 3-39. Figure 3-40. Figure 3-41. Figure 3-42. Figure 3-43. Figure 3-44. Figure 3-45. Figure 3-46. Figure 3-47. Figure 3-48. Figure 3-49. Figure 3-50. Figure 3-51. Figure 3-52. Figure 3-53. Figure 3-54. Figure 3-55. Figure 3-56.
Title
Page
Static Slot Length Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75 Number of Static Slots Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76 Static Payload Length Register. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76 Minislot Length Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77 Minislot Action Point Offset Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77 Static Slot Action Point Offset Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78 Latest Dynamic Transmission Start Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78 Maximum Payload Length Dynamic Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79 Symbol Window Configuration Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79 Network Idle Time Configuration Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80 Cycle Length Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80 Maximum Cycle Length Deviation Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81 External Offset Correction Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81 External Rate Correction Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82 External Correction Control Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82 Maximum Offset Correction Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83 Maximum Rate Correction Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84 Coldstart Maximum Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84 Transmit Start Sequence Length Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85 Network Management Vector Length Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85 Sync Frame Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86 Sync Frame Header Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86 Bus Guardian Tick Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87 Delay Counter Register. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87 Debug Port Control Register. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88 Start of Offset Correction Cycle Time Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89 Idle Detection Length Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90 Symbol Window Control Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90 Wakeup Mechanism Control Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91 Wakeup Symbol TX Idle Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91 Wakeup Symbol TX Low Register. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92 Listen Timeout With Noise Length Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92 Protocol State Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93 Current Cycle Counter Value Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94 Current Macrotick Counter Value Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94
MFR4200 Data Sheet, Rev. 0
14
Freescale Semiconductor
Figure Number
Figure 3-57. Figure 3-58. Figure 3-59. Figure 3-60. Figure 3-61. Figure 3-62. Figure 3-63. Figure 3-64. Figure 3-65. Figure 3-66. Figure 3-67. Figure 3-68. Figure 3-69. Figure 3-70. Figure 3-71. Figure 3-72. Figure 3-73. Figure 3-74. Figure 3-75. Figure 3-76. Figure 3-77. Figure 3-78. Figure 3-79. Figure 3-80. Figure 3-81. Figure 3-82. Figure 3-83. Figure 3-84. Figure 3-85. Figure 3-86. Figure 3-87. Figure 3-88. Figure 3-89. Figure 3-90. Figure 3-91.
Title
Page
Offset Correction Value Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95 Rate Correction Value Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95 Global Network Management Vector n Register, n = [0:5] . . . . . . . . . . . . . . . . . . . . . . . 96 Symbol Window Status Channel A Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97 Symbol Window Status Channel B Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98 Bus Guardian Status Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99 Startup Interrupt Enable Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100 Maximum Odd Cycles Without Clock Correction Fatal Register . . . . . . . . . . . . . . . . . 101 Maximum Odd Cycles Without Clock Correction Passive Register . . . . . . . . . . . . . . . 101 Channel Status Error Counter n Register, n = [0:1] . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102 Interrupt Enable Register 0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103 Slot Status Selection n Register, n = [0:3] . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103 Slot Status Counter n Register, n = [0:7] . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104 Slot Status Counter Condition n Register, n = [0:7] . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105 Slot Status Counter Incrementation Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107 Slot Status Counter Interrupt Mask Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107 Receive Buffer Interrupt Vector Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108 Transmit Buffer Interrupt Vector Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109 CHI Error Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109 Clock Correction Failed Counter Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113 Error Handling Level Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113 Interrupt Status Register 0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114 Startup Interrupt Status Register. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 118 Slot Status n Register, n = [0:7] . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119 Odd Sync Frame ID n Register, n = [0:15]. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120 Even Sync Frame ID n Register, n = [0:15] . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121 Odd Measurement Channel A n Register, n = [0:15] . . . . . . . . . . . . . . . . . . . . . . . . . . . 121 Odd Measurement Channel B n Register, n = [0:15] . . . . . . . . . . . . . . . . . . . . . . . . . . . 122 Even Measurement Channel A n Register, n = [0:15] . . . . . . . . . . . . . . . . . . . . . . . . . . 122 Even Measurement Channel B n Register, n = [0:15] . . . . . . . . . . . . . . . . . . . . . . . . . . 123 Even Measurement Counter Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124 Odd Measurement Counter Register. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124 FIFO Size Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125 Message Buffer Control, Configuration and Status n Register, n = [0:58] . . . . . . . . . . 126 Active Transmit Buffer Frame ID Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126
MFR4200 Data Sheet, Rev. 0
Freescale Semiconductor
15
Figure Number
Figure 3-92. Figure 3-93. Figure 3-94. Figure 3-95. Figure 3-96. Figure 3-97. Figure 3-98. Figure 3-99. Figure 3-100. Figure 3-101. Figure 3-102. Figure 3-103. Figure 3-104. Figure 3-105. Figure 3-106. Figure 3-107. Figure 3-108. Figure 3-109. Figure 3-110. Figure 3-111. Figure 3-112. Figure 3-113. Figure 3-114. Figure 3-115. Figure 3-116. Figure 3-117. Figure 3-118. Figure 3-119. Figure 3-120. Figure 3-121. Figure 3-122. Figure 3-123.
Title
Page
Active Transmit Buffer Cycle Counter and Payload Length Register . . . . . . . . . . . . . . 127 Active Transmit Buffer Header CRC Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127 Active Transmit Buffer Data n Register, n = [0:15] . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128 Active Transmit Buffer Message Buffer Slot Status Vector Register . . . . . . . . . . . . . . 128 Active Receive Buffer Frame ID Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129 Active Receive Buffer Cycle Counter and Payload Length Register . . . . . . . . . . . . . . . 129 Active Receive Buffer Header CRC Register. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130 Active Receive Buffer Data n Register, n = [0:15]. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130 Active Receive Buffer Message Buffer Slot Status Vector Register . . . . . . . . . . . . . . . 131 Active FIFO Buffer Frame ID Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131 Active FIFO Buffer Cycle Counter and Payload Length Register . . . . . . . . . . . . . . . . . 132 Active FIFO Buffer Header CRC Register. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 132 Active FIFO Buffer Data n Register, n = [0:15]. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133 Active FIFO Buffer Message Buffer Slot Status Vector Register . . . . . . . . . . . . . . . . . 133 Sync Frame Acceptance Filter Value Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 134 Sync Frame Acceptance Filter Mask Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 134 Sync Frame Rejection Filter Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 135 Cycle Counter Filter n Register, n = [0:58] . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 135 FIFO Acceptance Filter Message ID Value Register . . . . . . . . . . . . . . . . . . . . . . . . . . . 136 FIFO Acceptance Filter Message ID Mask Register . . . . . . . . . . . . . . . . . . . . . . . . . . . 136 FIFO Acceptance/Rejection Filter Channel Register . . . . . . . . . . . . . . . . . . . . . . . . . . . 137 FIFO Rejection Filter Frame ID Value Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 138 FIFO Rejection Filter Frame ID Mask Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 138 Timer Interrupt Configuration Register 0 Cycle Set . . . . . . . . . . . . . . . . . . . . . . . . . . . 139 Timer Interrupt Configuration Register 0 Macrotick Offset . . . . . . . . . . . . . . . . . . . . . 140 Timer Interrupt Configuration Register 1 Cycle Set . . . . . . . . . . . . . . . . . . . . . . . . . . . 140 Timer Interrupt Configuration Register 1 High . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 141 Transmit Message Buffer Slot Status Vector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 146 Receive and Receive FIFO Message Buffer Slot Status Vector. . . . . . . . . . . . . . . . . . . 147 BUFCSnR of a Receive Message Buffer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 150 BUFCSnR of a Transmit Message Single Buffer for the Dynamic Segment. . . . . . . . . 150 BUFCSnR of a Host Part Transmit Message Buffer of a Double Tx Buffer for the Dynamic Segment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 151 Figure 3-124. BUFCSnR of a Host Part Transmit Message Buffer of a Double Tx Buffer for the Static Segment. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 151
MFR4200 Data Sheet, Rev. 0 16 Freescale Semiconductor
Figure Number
Title
Page
Figure 3-125. BUFCSnR of a Single Transmit Message Buffer for the Static Segment . . . . . . . . . . . 151 Figure 3-126. BUFCSnR of a CC Part Transmit Message Buffer of a Double Tx Buffer for Dynamic and Static Segment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 152 Figure 3-127. BUFCSnR of FIFO Buffer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 152 Figure 3-128. CCFnR, Transmit and Receive Message Buffer Filter Registers . . . . . . . . . . . . . . . . . . 158 Figure 3-129. CCFnR, CC Part Buffer of a Double Transmit Message Buffer Filter Registers. . . . . . 158 Figure 3-130. CCFnR, FIFO Buffer Filter Registers. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 158 Figure 3-131. Buffer Control, Configuration, Status/Filtering Register Set for Transmit/Receive Buffers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 161 Figure 3-132. Buffer Control, Configuration, Status/Filtering Register Set for Receive FIFO Buffers 163 Figure 3-133. Buffer Busy Bit Timing for a Transmit Message Buffer . . . . . . . . . . . . . . . . . . . . . . . . 165 Figure 3-134. Example of a Buffer Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 170 Figure 3-135. Transition Scheme Between Different Buffer Types Depending on Operational Mode of CC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 173 Figure 3-136. Operations During a Frame Reception . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 175 Figure 3-137. Operations with a Single Transmit Message Buffer during an Event Type of Transmission for a Static Segment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 180 Figure 3-138. Double Transmit Message Buffer Structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 181 Figure 3-139. Doubled Buffer Data Collection with State Driven Transmit Operation . . . . . . . . . . . . 184 Figure 3-140. Doubled Buffer Data collection with Event Driven Transmit Operation . . . . . . . . . . . . 185 Figure 3-141. FIFO Status (Empty, Not Empty, Overrun) -- Example of FIFO with Three Message Buffers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 187 Figure 3-142. Connecting MFR4200 to MPC5xx Using the AMI (Example) . . . . . . . . . . . . . . . . . . . 190 Figure 3-143. Connecting MFR4200 to MAC71xx Using the AMI (Example) . . . . . . . . . . . . . . . . . . 191 Figure 3-144. Connecting MFR4200 to DSP56F83x (Hawk) Using the AMI (Example) . . . . . . . . . . 191 Figure 3-145. FlexRay CC to HCS12 Device Connection with HCS12 EBI Paged Mode Support. . . 193 Figure 3-146. FlexRay CC to HCS12 Device Connection with HCS12 EBI Unpaged Mode Support 194 Figure 3-147. HCS12 interface Address Decoding and Internal CS Signal Generation . . . . . . . . . . . . 195 Figure 3-148. Timing Diagram of CC State Transition from Configuration State to Normal State . . . 200 Figure 3-149. Start of Communication Cycle and Start of Offset Correction Functions Timing . . . . . 204 Figure 3-150. Timing for Debug Functions with Three EXTAL or CC_CLK Clock Cycles of High State (Logic "1") . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 204 Figure 3-151. Slot Start in Static Segment Function Timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 205 Figure 4-1. VREG3V3 Block Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 208 Figure 5-1. Power-on Reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 215 Figure 5-2. Low Voltage Reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 215 Figure 5-3. External Reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 216
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 17
Figure Number
Figure A-1. Figure A-2. Figure A-3. Figure A-4. Figure A-5. Figure B-1. Figure B-2. Figure B-3. Figure C-1. Figure C-1. Figure C-2. Figure C-3. Figure C-4.
Title
Page
Voltage Regulator -- Chip Power-up and Voltage Drops (not scaled) . . . . . . . . . . . . . 230 AMI Interface Read and Write Timing Diagrams . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 233 AMI Interface Write-after-Read Transactions Timing Diagram . . . . . . . . . . . . . . . . . . 234 AMI Interface Read-after-Write Transactions Timing Diagram . . . . . . . . . . . . . . . . . . 234 HCS12 Interface Read/write Timing Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 236 64-pin LQFP Mechanical Dimensions (Case N 840F-02) (Page 1) . . . . . . . . . . . . . . . . 239 64-pin LQFP Mechanical Dimensions (Case N 840F-02) (Page 2) . . . . . . . . . . . . . . . . 240 64-pin LQFP Mechanical Dimensions (Case N 840F-02) (Page 3) . . . . . . . . . . . . . . . . 241 Recommended PCB Layout (64-pin LQFP) for Standard Pierce Oscillator Mode . . . . 244 Protocol Operation Control (POC) - 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 246 Protocol Operation Control (POC) - 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 247 POC -- Normal Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 248 POC -- Passive Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 249
MFR4200 Data Sheet, Rev. 0 18 Freescale Semiconductor
List of Tables
Table Number
Table 1-1. Table 1-2. Table 2-1. Table 2-2. Table 2-3. Table 2-4. Table 2-5. Table 2-6. Table 2-7. Table 2-8. Table 2-9. Table 3-1. Table 3-2. Table 3-3. Table 3-4. Table 3-5. Table 3-6. Table 3-7. Table 3-8. Table 3-9. Table 3-10. Table 3-11. Table 3-12. Table 3-13. Table 3-14. Table 3-15. Table 3-16. Table 3-17.
Title
Page
Acronyms and Abbreviations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 Notational Conventions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 Interface Selection. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 Clockout Selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 Bus Driver Type Selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 Voltage Regulator VDDR Connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 Device Memory Map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 Assigned Part ID Numbers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 Pin Functions and Signal Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 MFR4200 Power and Ground Connection Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 Recommended Pullup/down Resistor Values for IF_SEL[0:1] and CLK_S[0:1] Inputs . . 46 Register Map Summary. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55 Bus Driver Type Selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64 Encoding of Debug Port Control Fields CNTRL[7:4] and CNTRL[3:0] . . . . . . . . . . . . . . 88 CC State Coding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93 Mapping between Receive Message Buffer Payload Bytes and GNMVnR Registers . . . . 96 Channel Configuration for SSCCnR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106 Error Handling Level Coding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114 Mapping between SSSnR and SSnR. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120 FIFO Size . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125 FIFO Channel Filtering Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137 Receive Message Buffer Layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 141 Receive FIFO Message Buffer Layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142 Transmit Message Buffer Layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142 Mapping between Buffer Layout and Active Receive/Transmit/FIFO Message Buffers. 143 Channel Filtering Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 156 CC Buffer Fields Accessibility . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 167 Double Transmit Message Buffer Data Collection with State Driven Transmit Operation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 183 Table 3-18. Double Transmit Message Buffer Data Collection with Event Driven Transmit Operation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 186 Table 3-19. FlexRay CC MCU Interface Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 189 Table 3-20. AMI Interface Signals and Pins Description. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 192
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 19
Table Number
Table 3-21. Table 3-22. Table 3-23. Table 4-1. Table 4-2. Table 5-1. Table A-1. Table A-2. Table A-3. Table A-4. Table A-5. Table A-6. Table A-7. Table A-8. Table A-9. Table A-10. Table A-11. Table A-12. Table A-13. Table A-14. Table C-1.
Title
Page
HCS12 Interface Signal and Pin Descriptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 196 CLKOUT Frequency Selection. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 197 Debug Port Functions Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 203 VREG3V3V2 -- Signal Properties. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 209 VREG3V3V2 -- Reset Sources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 211 MFR4200 Pins Relevant to the CRG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 214 Absolute Maximum Ratings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 221 ESD and Latch-up Test Conditions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 222 ESD and Latch-up Protection Characteristics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 222 Operating Conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 223 Thermal Package Simulation Details . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 225 5V I/O Characteristics (VDD5 = 5V) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 226 3.3V I/O Characteristics (VDD5 = 3.3V) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 227 Supply Current Characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 228 Voltage Regulator - Operating Conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 229 Voltage Regulator Recommended Capacitive Loads . . . . . . . . . . . . . . . . . . . . . . . . . . . . 230 Startup Characteristics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 231 Oscillator Characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 232 AMI Interface AC Switching Characteristics over the Operating Range . . . . . . . . . . . . 235 HCS12 Interface Timing Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 237 Suggested External Component Values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 243
MFR4200 Data Sheet, Rev. 0 20 Freescale Semiconductor
Chapter 1 Introduction
This data sheet provides information on a system that includes the MFR4200 FlexRay Communication Controller Module.
1.1
Audience
This data sheet is intended for application and system hardware developers who wish to develop products for the FlexRay MFR4200. It is assumed that the reader understands FlexRay protocol functionality and microcontroller system design.
1.2
Additional Reading
For additional reading that provides background to, or supplements, the information in this manual: * Appendix C, "MFR4200 Protocol Implementation Document" * For more information about the FlexRay protocol, refer to the following document: -- FlexRay Communications System Protocol Specification V1.1, FlexRay Consortium, 2004. * For more information about Philips Bus Guardian and Bus Driver devices, refer to the following documents: -- FlexRay Electrical Physical Layer Specification, v1.5, FlexRay Consortium, 2004, -- FlexRay Bus Guardian Preliminary Functional Specification, v1.9, FlexRay Consortium, June 2004. * For more information about RS485 transceivers: -- About the MAX3078 transceiver (IDLE state coded as "1") http://pdfserv.maxim-ic.com/en/ds/MAX3070E-MAX3079E.pdf -- About the MAX3485 transceiver (IDLE state coded as "0") http://pdfserv.maxim-ic.com/en/ds/MAX3483-MAX3491.pdf * For more information about the Power PC interface, refer to the Freescale products section at www.freescale.com. * For more information about M9HCS12 Family devices and M9HCS12 programming, refer to the Freescale Products section at www.freescale.com.
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 21
Introduction
1.3
Terminology
Table 1-1. Acronyms and Abbreviations
Term Meaning Asynchronous memory interface Bus guardian Communication controller (an alternative term for the MFR4200) Function ceil(x) returns the nearest integer greater than or equal to x The actual length of a cycle in T for the ideal controller ( 0 ppm) External bus interface Frame start sequence The FlexRay CC host MCU Less/least significant bit Microcontroller More/most significant bit Macrotick Microtick Network idle time Physical interface FlexRay Communications System Protocol Specification Protocol working document Reception Time control unit Transmission Time division multiplex access
AMI BG CC ceil Cycle length in T EBI FSS Host LSB MCU MSB MT T NIT PHY PS PWD RX TCU TX TDMA
Table 1-2. Notational Conventions
active-high active-low Names of signals that are active-high are shown in upper case text, without a `#' symbol at the end. Active-high signals are asserted (active) when they are high and negated when they are low. A `#' symbol at the end of a signal name indicates that the signal is active-low. An active-low signal is asserted (active) when it is at the logic low level and is negated when it is at the logic high level. A signal that is asserted is in its active logic state. An active-low signal changes from high to low when asserted; an active-high signal changes from low to high when asserted. A signal that is negated is in its inactive logic state. An active-low signal changes from low tohigh when negated; an active-high signal changes fromhigh to low when negated. To set a bit means to establish logic level one on the bit. To clear a bit means to establish logic level zero on the bit.
asserted negated set clear
MFR4200 Data Sheet, Rev. 0 22 Freescale Semiconductor
Part Number Coding
Table 1-2. Notational Conventions (continued)
0x0F 0b0011 x == The prefix "0x" denotes a hexadecimal number. The prefix "0x" denotes a binary number. In certain contexts, such as a signal encoding, this indicates "don't care". For example, if a field is binary encoded 0bx001, the state of the first bit is "don't care". Used in equations, this symbol signifies comparison.
1.4
Part Number Coding
Speed Option Package Option 40 = 40 MHz PB = 64-pin LQFP AE = 64-pin Lead Free / Halide Free LQFP Temperature Option Device Title Controller Family Qualification P = Engineering Sample M = Qualified part M = -40oC to +125oC
P FR 4200 M PB 40
Figure 1-1. Order Part Number Coding
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 23
Introduction
MFR4200 Data Sheet, Rev. 0 24 Freescale Semiconductor
Introduction
Chapter 2 Device Overview
2.1 Introduction
The FlexRay Communication Controller MFR4200 implements the FlexRay protocol in accordance with Appendix C, "MFR4200 Protocol Implementation Document". This appendix refers to FlexRay Communications System Protocol Specification V1.1 for most protocol mechanisms, and complements the protocol specification where necessary. The controller host interface (CHI) of the FlexRay Communication Controller MFR4200 is implemented in accordance with Chapter 3, "MFR4200 FlexRay Communication Controller".
2.1.1
Features
The following list of features is not comprehensive, but is a selection of the most important features. Detailed descriptions of the protocol and the CHI features are provided in the following. * Chapter 3, "MFR4200 FlexRay Communication Controller" * Appendix C, "MFR4200 Protocol Implementation Document" The most important features are: * Bit rate up to a maximum of 10 Mbit/sec on each of two channels. * 59 message buffers, each with a payload of up to 32 bytes of data. * FlexRay frames with up to 254 payload data bytes. Padding is used for FlexRay payload data that exceeds the 32-byte data size boundary. * One configurable receive FIFO. * Each message buffer configurable as a receive message buffer, or as a transmit message buffer (single or double), or as part of the receive FIFO. * Two receive shadow message buffers available to each channel. * Message buffer configurable with state or event semantics. * Flexible error signaling mechanism providing eight configurable counters, slot status indicators and interrupts. * Internal measured time difference values used for clock synchronization can be read via the CHI. * The status of up to four slots can be observed independently of the communication controller receive buffers. * The host accesses all message buffers by means of three active message buffers (active transmit message buffer, active message receive buffer, and active receive FIFO buffer) in the CHI. * Configurable message filtering based on frame ID, cycle counter, and channel, for transmit and receive message buffers. * Configurable message filtering based on frame ID, channel, and message ID, for the receive FIFO. * Duration of the communication cycle configurable in microticks.
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 25
Device Overview
2.1.2
*
Implementation Details and Constraints
The MFR4200 provides two hardware selectable host interfaces: -- HCS12 interface, for direct connection to Freescale's HCS12 family of microcontrollers. The HCS12 interface clock signal used to synchronize data transfer can run at a maximum rate of 8 MHz. -- Asynchronous memory interface (AMI), for asynchronous connection to microcontrollers. Internal 40 MHz quartz oscillator. Internal voltage regulator for the digital logic and the oscillator. Hardware selectable clock output to drive external host devices: Disabled/4/10/40 MHz. Maskable interrupt sources available over one interrupt output line. Glueless electrical physical layer interface compatible with dedicated FlexRay physical layer. Industry standard RS485 physical layer device can be used with additional glue logic. Two pins have multiplexed strobe functions. NOTE Refer to Chapter 3, "MFR4200 FlexRay Communication Controller" for more implementation details and constraints.
* * * * * *
2.1.3
Modes of Operation
NOTE This section depicts only the MFR4200 device modes, not the FlexRay protocol operating modes of the MFR4200 FlexRay module. Refer to Chapter 3, "MFR4200 FlexRay Communication Controller for more information on the FlexRay module operating modes.
Only one user mode is available on the MFR4200 -- normal operating mode. In normal operating mode, the selections described below are possible.
2.1.3.1
Interface Selection
Table 2-1. Interface Selection
Pin Interface IF_SEL0 0 0 1 1 IF_SEL1 0 1 0 1 Reserved HCS12 synchronous interface Asynchronous Memory Interface Reserved
The external interface is selected by means of the IF_SEL[0:1] pins, as shown in Table 2-1.
MFR4200 Data Sheet, Rev. 0 26 Freescale Semiconductor
Introduction
NOTE As the IF_SEL[0:1] signals share pins with physical layer interface signals, the interface type must be selected using either pullup or pulldown resistors. IF_SEL[0:1] signals are inputs during the internal reset sequence and are latched by the internal reset signal level. Refer to Chapter 5, "Clocks and Reset Generator" for more information.
2.1.3.2
Clockout Selection
Table 2-2. Clockout Selection
Pin CLKOUT Function CLK_S0 0 1 0 1 CLK_S1 0 0 1 1 4 MHz output 10 MHz output 40 MHz output Disabled (CLKOUT output is "0")
The CLK_S[0:1] pins select the CLKOUT pin output clock frequency or disable the output clock.
NOTE As CLK_S[0:1] signals share pins with physical layer interface signals, the CLKOUT function must be selected using either pullup or pulldown resistors. CLK_S[0:1] signals are inputs during the internal reset sequence and are latched by the internal reset signal level. Refer to Chapter 5, "Clocks and Reset Generator for more information.
2.1.3.3
Bus Driver Type Selection
The SCM[0:1] bits of the MCR0 register (see Chapter 3, "MFR4200 FlexRay Communication Controller) select the bus driver type.
Table 2-3. Bus Driver Type Selection
Driver Type RS485 (IDLE state coded as '0')1 Optical/Electrical PHY Reserved RS485 (IDLE state coded as '1')1
1
SCM1 0 0 1 1
SCM0 0 1 0 1
Refer to Section 1.2, "Additional Reading" for more information on RS485.
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 27
Device Overview
NOTE It is not possible to mix in a cluster or per channel: * * Different RS485; RS485 and Optical/Electrical PHY.
2.1.3.4
Internal VREG Enable/Disable Selection
Table 2-4. Voltage Regulator VDDR Connection
VDDR Supplied with VDD51 Tied to ground
1
Description Internal Voltage Regulator enabled Internal Voltage Regulator disabled
Refer to Section A.1.7, "Operating Conditions" for the VDD5
2.1.4
Block Diagram
Figure 2-1 shows a block diagram of the MFR4200 device.
MFR4200 Data Sheet, Rev. 0 28 Freescale Semiconductor
Introduction
VDDR VSSR VDD2_5 VSS2_5
Voltage Regulator
VDDA VSSA
RESET#
XTAL EXTAL/CC_CLK VDDOSC VSSOSC A1/XADDR19 A2/XADDR18 A3/XADDR17 A4/XADDR16 A5/XADDR15 A6/XADDR14 A7/ACS0 A8/ACS1 A9/ACS2 OE#/ACS3 ACS4 ACS5 WE#/RW_CC# CE#/LSTRB ECLK_CC INT_CC# RXD_BG1/RXD1_485 BGE1 RXD_BG2/RXD2_485 BGE2 TXD_BG1/TXD1_485/IF_SEL1 TXEN1#/ TXE1_485# TXD_BG2/TXD2_485 TXEN2#/ TXE2_485# MT/CLK_S1 ARM/DBG1/CLK_S0 BGT/DBG2/IF_SEL0
Oscillator
Clock and Reset Generation Module
D1/PAD14 D0/PAD15 D2/PAD13 D3/PAD12
HCS12 Interface
Asynchronous Memory Interface
D4/PAD11 D5/PAD10 D6/PAD9 D7/PAD8 D8/PAD7 D9/PAD6 D10/PAD5 D11/PAD4 D12/PAD3
Host Interface
D13/PAD2 D14/PAD1 D15/PAD0
Receiver Channel A
Receiver Channel B
Transmitter Channel A
Transmitter Channel B
TCU
Debug Strobe
CLKOUT CLKOUT/TM0
External Clock Generator
TEST
Supply Pins
VREG input analog VDDA VSSA VREG input VDDR VSSR Internal Logic VDD2_5 VSS2_5 Oscillator VDDOSC VSSOSC I/O Driver
VDDX[1..4] VSSX[1..4]
Figure 2-1. MFR4200 Block Diagram
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 29
Device Overview
2.1.5
Memory Map
Table 2-5. Device Memory Map
Address (Hex) 0x000-0x018 0x01A-0x01E 0x024-0x04A 0x04C-0x082 0x084-0x0FE 0x100-0x126 0x128-0x13E 0x140-0x166 0x168-0x17E 0x180-0x1A6 0x1A8-0x1FE 0x200-0x2FE 0x300-0x31E 0x320-0x3FE General Control Registers Acceptance Filter Registers General Control Registers Slot Status Registers General Control Registers Active Receive FIFO Buffer Reserved, read-only location Active Receive Message Buffer Reserved, read-only location Active Transmit Message Buffer Reserved, read-only location Buffer Control, Configuration and Status Registers, Cycle Counter Filters Registers Reserved, read-only location General Status Registers Module Size (bytes) 26 6 40 56 124 40 24 40 24 40 88 256 32 224
Table 2-5 shows the device memory map of the MFR4200 after a hard reset.
The FlexRay block defines the MFR4200 address memory map. Refer to Chapter 3, "MFR4200 FlexRay Communication Controller for the detailed register map.
MFR4200 Data Sheet, Rev. 0 30 Freescale Semiconductor
Signal Descriptions
2.1.6
Part ID Assignments
The part ID is located in two 16-bit registers, MVR0 and MVR1, at addresses 0x002 and 0x098 (see Chapter 3, "MFR4200 FlexRay Communication Controller). This read-only value is a unique part ID for each revision of the chip. Table 2-6 shows the assigned part ID number.
Table 2-6. Assigned Part ID Numbers
Part ID1 Device Mask Set Number MVR0 MFR4200 MFR4200
1
MVR1 0x0000 0x0001
0L60X 1L60X
0x9042 0x9042
The coding is as follows (see also the MVR0 and MVR1 register descriptions in Chapter 3, "MFR4200 FlexRay Communication Controller):
MVR0: Bit 15-12: Major release of the FlexRay block in the MFR4200 device Bit 11-08: Minor release of the FlexRay block in the MFR4200 device Bit 07-00: Device Part ID1 MVR1: Bit 15-08: Device Part ID2. Bit 07-04: Major release of the MFR4200 device. Bit 03-00: Minor release of the MFR4200 device.
2.2
Signal Descriptions
This section describes the signals that connect off-chip. It includes a pinout diagram, a table of signal properties, and a detailed discussion of each signal.
2.2.1
System Pinout
The MFR4200 is available in a 64-pin low profile quad flat package (LQFP). Most pins perform two or more functions, as described in Section 2.2.2, "Pin Functions and Signal Properties". Figure 2-2 shows the pin assignments.
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 31
Device Overview
ECLK_CC
D5/PAD10
D4/PAD11
D3/PAD12
D2/PAD13
TEST D9/PAD6 D10/PAD5 D11/PAD4 D12/PAD3 D13/PAD2 D14/PAD1 VDDX1 VSSX1 D15/PAD0 A1/XADDR19 A2/XADDR18 A3/XADDR17 A4/XADDR16 A5/XADDR15 RESET#
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 A7/ACS0 19 20 21 22 23 24 25 26 27 28 29 30 31
Notes: 1 One of the following internal signals can be output through the DBG1 or DBG2 pin: PCS, SSS, RAGFB, MSS, DSSB, SFB, RCFB, SCC, RAGFA, MTS, SOC, DSSA, SFA, RCFA. (See Table 3-3 and Table 3-23.) 2 CLK_S[1:0] and IF_SEL[1:0] are inputs during the internal reset sequence, and are latched by the internal reset signal level.
Figure 2-2. Pin Assignments for MFR4200 in 64-pin LQFP
INT_CC# 64 A6/XADDR14
D8/PAD7 62 VSSR
D7/PAD8
D6/PAD9
CLKOUT 63
VDD2_5
VSS2_5 60 A8/ACS1
VDDX3
VSSX3
VDDA
VSSA
61 VDDR
59 A9/ACS2
58 VSSOSC
57 EXTAL/CC_CLK
56 XTAL
55 VDDOSC
54 OE#/ACS3
53 ACS4
52 CE#/LSTRB
51 WE#/RW_CC
50 VSSX4
49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 BGT/DBG21/IF_SEL02
MT/CLK_S12 ARM/DBG11/CLK_S02 BGE2 TXD_BG2/TXD2_485 TXEN2#TXE2_485# RXD_BG2/RXD2_485 BGE1 TXD_BG1/TXD1_485/IF_SEL12 D1/PAD14 D0/PAD15 VSSX2 VDDX2 TXEN1#/TXE1_485# VDDX4 ACS5 RXD_BG1/RXD1_485
2.2.2
Pin Functions and Signal Properties
Table 2-7 provides a summary of all pin functions and signal properties shown in Figure 2-2.
MFR4200 Data Sheet, Rev. 0 32 Freescale Semiconductor
Signal Descriptions
Table 2-7. Pin Functions and Signal Properties
Pin Pin1 N Function1 Pin1 Pin1 Function2 Function3 Powered by In/ Out Pin type2,3 Re set Functional Description
Host Interface Pins 11 12 13 14 15 17 A1 A2 A3 A4 A5 A6 XADDR19 XADDR18 XADDR17 XADDR16 XADDR15 XADDR14 VDDX VDDX VDDX VDDX VDDX VDDX I I I I I I PC PC PC PC PC PC AMI address bus / HCS12 expanded address lines. A1= LSB of the AMI address bus. AMI address bus / HCS12 expanded address lines. AMI address bus / HCS12 expanded address lines. AMI address bus / HCS12 expanded address lines. AMI address bus / HCS12 expanded address lines. AMI address bus / HCS12 expanded address lines. XADDR14 = LSB of the HCS12 expanded address lines AMI address bus / HCS12 address select inputs. AMI address bus / HCS12 address select inputs. AMI address bus / HCS12 address select inputs. AMI read output enable signal / HCS12 address select input. HCS12 address select inputs. HCS12 address select inputs. MSB of the address select inputs. AMI data bus / HCS12 multiplexed address/data bus. PAD0 is the LSB of the HCS12 address/data bus. AMI data bus / HCS12 multiplexed address/data bus. AMI data bus / HCS12 multiplexed address/data bus. AMI data bus / HCS12 multiplexed address/data bus. AMI data bus / HCS12 multiplexed address/data bus. AMI data bus / HCS12 multiplexed address/data bus. AMI data bus / HCS12 multiplexed address/data bus.
18 21 22 27 28 34 10
A7 A8 A9 OE#4 ACS4 ACS5 D15
ACS0 ACS1 ACS2 ACS3 PAD0
-
VDDX VDDX VDDX VDDX VDDX VDDX VDDX
I I I I I I I/O
PC PC PC PC PC PC Z/DC/PC
Z
7 6 5 4 3 2
D14 D13 D12 D11 D10 D9
PAD1 PAD2 PAD3 PAD4 PAD5 PAD6
-
VDDX VDDX VDDX VDDX VDDX VDDX
I/O I/O I/O I/O I/O I/O
Z/DC/PC Z/DC/PC Z/DC/PC Z/DC/PC Z/DC/PC Z/DC/PC
Z Z Z Z Z Z
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 33
Device Overview
Table 2-7. Pin Functions and Signal Properties (continued)
Pin Pin1 N Function1 62 61 58 57 56 55 51 40 39 29 30 52 D8 D7 D6 D5 D4 D3 D2 D1 D0 CE# WE# ECLK_CC Pin1 Pin1 Function2 Function3 PAD7 PAD8 PAD9 PAD10 PAD11 PAD12 PAD13 PAD14 PAD15 LSTRB RW_CC# Powered by VDDX VDDX VDDX VDDX VDDX VDDX VDDX VDDX VDDX VDDX VDDX VDDX In/ Out I/O I/O I/O I/O I/O I/O I/O I/O I/O I I I Pin type2,3 Z/DC/PC Z/DC/PC Z/DC/PC Z/DC/PC Z/DC/PC Z/DC/PC Z/DC/PC Z/DC/PC Z/DC/PC PC PC PC Re set Z Z Z Z Z Z Z Z Z Functional Description AMI data bus / HCS12 multiplexed address/data bus. AMI data bus / HCS12 multiplexed address/data bus. AMI data bus / HCS12 multiplexed address/data bus. AMI data bus / HCS12 multiplexed address/data bus. AMI data bus / HCS12 multiplexed address/data bus. AMI data bus / HCS12 multiplexed address/data bus. AMI data bus / HCS12 multiplexed address/data bus. AMI data bus / HCS12 multiplexed address/data bus. AMI data bus / HCS12 multiplexed address/data bus. D0 is the LSB of the AMI data bus AMI chip select signal / HCS12 low-byte strobe signal AMI write enable signal/ HCS12 read/write select signal HCS12 clock input
Physical Layer Interface 32 48 47 33 43 36 44 BGT MT ARM RXD_BG1 RXD_BG2 TXEN1# TXEN2# DBG2 CLK_S1 DBG1 RXD2_485 RXD2_485 TXE1_485# TXE2_485# IF_SEL0 CLK_S0 VDDX VDDX VDDX VDDX VDDX VDDX VDDX I/O I/O I/O I I O O DC/PD DC/PD DC/PD PC PC DC DC 1 1 Bus Guardian Tick / Debug strobe point signal 2/Host interface selection 0 Bus Guardian Macrotick/Controller clock output select signal 1 Bus Guardian ARM signal / Debug strobe point signal1/Controller clock output select signal 0 PHY Data receiver input / RS485 Data receiver input PHY Data receiver input / RS485 Data receiver input Transmit enable for PHY / Transmit enable for RS485 Transmit enable for PHY / Transmit enable for RS485
MFR4200 Data Sheet, Rev. 0 34 Freescale Semiconductor
Signal Descriptions
Table 2-7. Pin Functions and Signal Properties (continued)
Pin Pin1 N Function1 41 45 42 46 TXD_BG1 TXD_BG2 BGEN1 BGEN2 Pin1 Pin1 Function2 Function3 TXD1_485 TXD2_485 IF_SEL1 Powered by VDDX VDDX VDDX VDDX In/ Out I/O O I I Pin type2,3 DC/PD DC PC PC Re set 0 Functional Description PHY Data transmitter output / RS485 Data transmitter output / Host interface selection 1 PHY Data transmitter output / RS485 Data transmitter output Bus Guardian Enable monitor input Bus Guardian Enable monitor input
Clock Signals 63 CLKOUT VDDX I/O DC Controller clock output selectable as disabled or 4/10/40 MHz
Others 16 64 1 RESET# INT_CC# TEST VDDX VDDX VDDX I O I OD/DC 1 Hardware reset input Controller interrupt output Must be tied to logic low in application.
Oscillator 24 25 EXTAL XTAL CC_CLK VDDOSC I I Crystal driver / External clock pin Crystal driver pin
Supply/Bypass Filter pins 8 37 54 35 9 38 53 31 20 19 50 49 59 60 VDDX1 VDDX2 VDDX3 VDDX4 VSSX1 VSSX2 VSSX3 VSSX4 VDDR VSSR VDDA VSSA VDD2_5,4 VSS2_54 Supply voltage, I/O Supply voltage, I/O Supply voltage, I/O Supply voltage, I/O Supply voltage ground, I/O Supply voltage ground, I/O Supply voltage ground, I/O Supply voltage ground, I/O Supply voltage, supply to pin drivers and internal voltage regulator Supply voltage ground, ground to pin drivers and internal voltage regulator Supply analog voltage Supply analog voltage ground Core voltage power supply output (nominally 2.5V) Core voltage ground output
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 35
Device Overview
Table 2-7. Pin Functions and Signal Properties (continued)
Pin Pin1 N Function1 26 23
1 2
Pin1 Pin1 Function2 Function3 -
Powered by -
In/ Out -
Pin type2,3 -
Re set -
Functional Description Oscillator voltage power supply output (nominally 2.5 V) Oscillator voltage ground output
VDDOSC4 VSSOSC4
# - signal is active-low. PC (Pullup/down Controlled) - Register controlled internal weak pullup/down for a pin in input mode. Refer to the following sections for more information: - Section 3.2.3.2.5, "Host Interface Pins Pullup/down Enable Register (HIPPER)" - Section 3.2.3.2.6, "Host Interface Pins Pullup/down Control Register (HIPPCR)" - Section 3.2.3.2.7, "Physical Layer Pins Pullup/down Enable Register (PLPPER)" - Section 3.2.3.2.8, "Physical Layer Pins Pullup/down Control Register (PLPPCR)" PD (Pull Down) - Internal weak pulldown for a pin in input mode. DC (Drive strength Controlled) - Register controlled drive strength for a pin in the output mode. Refer to the following for more information: - Section 3.2.3.2.3, "Host Interface and Physical Layer Pins Drive Strength Register (HIPDSR)" - Section 3.2.3.2.4, "Physical Layer Pins Drive Strength Register (PLPDSR)" Z - Three-stated pin. OD (Open Drain) - Output pin with open drain. 3 Reset state: - All pins with the PC option have pullup/down resistors disabled. - All pins with the DC option have full drive strength. 4 No load allowed except for bypass capacitors.
2.2.3
2.2.3.1
Detailed Signal Descriptions
A[1:6]/XADDR[19:14] -- AMI Address Bus, HCS12 Expanded Address Inputs
A[1:6]/XADDR[19:14] are general purpose input pins. Their function is selected by the IF_SEL[0:1] pins. Refer to Section 3.7, "Host Controller Interfaces" for more information. The pins can be configured to enable or disable either pullup or pulldown resistors on the pins. (See Section 3.2.3.2.5, "Host Interface Pins Pullup/down Enable Register (HIPPER)" and Section 3.2.3.2.6, "Host Interface Pins Pullup/down Control Register (HIPPCR)".) A[1:6] are AMI interface address signals. A1 is the LSB of the AMI address bus. XADDR[19:14] are HCS12 interface expanded address lines. XADDR14 is the LSB of the HCS12 interface expanded address lines.
2.2.3.2
A[7:9]/ACS[0:2] -- AMI Address Bus, HCS12 Expanded Address Inputs
A[7:9]/ACS[0:2] are general purpose input pins. Their function is selected by the IF_SEL[0:1] pins. Refer to Section 3.7, "Host Controller Interfaces" for more information. The pins can be configured to enable or disable either pullup or pulldown resistors on the pins.
MFR4200 Data Sheet, Rev. 0 36 Freescale Semiconductor
Signal Descriptions
A[7:9] are AMI interface address signals. ACS[0:2] are HCS12 interface address select signals.
2.2.3.3
OE#/ACS3 -- AMI Read Output Enable, HCS12 Address Select Input.
OE#/ACS3 is a general purpose input pin. Its function is selected by the IF_SEL[0:1] pins. Refer to Section 3.7, "Host Controller Interfaces" for more information. The pin can be configured to enable or disable either a pullup or pulldown resistor on the pin. OE# is the AMI interface output enable signal. This signal controls MFR4200 data output and the state of three-stated data pins D[15:0] during host read operations. ACS3 is an HCS12 interface address select signal.
2.2.3.4
ACS[4:5] -- HCS12 Address Select Inputs
ACS[4:5] are general purpose input pins.Their function is selected by the IF_SEL[0:1] pins. Refer to Section 3.7, "Host Controller Interfaces" for more information. The pins can be configured to enable or disable either pullup or pulldown resistors on the pins. ACS[4:5] are HCS12 interface address select signals. ACS5 is the MSB of the address select inputs.
2.2.3.5
D[15:0]/PAD[0:15] -- AMI Data Bus, HCS12 Multiplexed Address/Data Bus
D[15:0]/PAD[0:15] are general purpose input or output pins. Their functions are selected by the IF_SEL[0:1] pins. Refer to Section 3.7, "Host Controller Interfaces" for more information. These pins can be configured to provide either high or reduced output drive, and also to enable or disable either pullup or pulldown resistors on the pins. D[15:0] are data signals of the AMI interface. D0 is the LSB of the AMI data bus. PAD[0:15] are HCS12 interface multiplexed address/data signals in the HCS12 Host interface mode of operation. PAD0 is the LSB of the HCS12 address/data bus.
2.2.3.6
CE#/LSTRB -- AMI Chip Select, HCS12 Low-byte Strobe
The function of this pin is selected by IF_SEL[0:1] pins. Section 3.7, "Host Controller Interfaces" for more information. The pin can be configured to enable or disable either a pullup or pulldown resistor on the pin. CE# is an AMI interface transfer size input signal. It indicates the size of the requested data transfer in the current bus cycle. LSTRB is an HCS12 interface low-byte strobe input signal. It indicates the type of bus access.
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 37
Device Overview
2.2.3.7
WE#/RW_CC# -- AMI Write Enable, HCS12 Read/Write Select
The function of this pin is selected by IF_SEL[0:1] pins. Refer to Section 3.7, "Host Controller Interfaces" for more information. The pin can be configured to enable or disable either a pullup or pulldown resistor on the pin. WE# is an AMI interface write select signal. It strobes the valid data provided by the host on the D[15:0] pins during write operations to the MFR4200 memory. RW_CC# is an HCS12 interface read/write input signal. It indicates the direction of data transfer for a transaction.
2.2.3.8
ECLK_CC -- HCS12 Clock Input
ECLK_CC is the HCS12 interface clock input signal. The input clock frequency can be up to 8 MHz in the HCS12 mode of the external interface block. The pin can be configured to enable or disable either a pullup or pulldown resistor on the pin.
2.2.3.9
BGT/DBG2/IF_SEL0 -- Bus Guardian Tick, Debug Strobe Point 2, Host Interface Selection 0
BGT is a bus guardian tick clock output signal provided from the CC. If a Bus Guardian device is not used in an application, this pin may be left open. BGT is active, irrespective of which physical layer is selected. If the RS485 Driver type is selected, this pin is not used. This signal should be connected to the bus guardian on each channel. The pin can be configured to provide either high or reduced output drive. DBG2 is debug strobe point output 2. The function output on this pin is selected by the debug port control register. Refer to Section 3.10, "Debug Port" for more information. IF_SEL0 is the CC external interface selection input signal. Refer to Table 2-1 for the selection coding. NOTE The IF_SEL[0:1] signals are inputs during the internal reset sequence and are latched by the internal reset signal level. While the IF_SEL0 value is being latched, the output drive control is disabled and the internal pulldown resistor is connected to the pin. As the IF_SEL[0:1] signals share pins with Physical Layer Interface signals, pullup/down devices must be used for selection. Recommended pullup/down resistor values for the IF_SEL[0:1] inputs are given in Section 2.4.2, "Recommended Pullup/down Resistor Values".
2.2.3.10
MT/CLK_S1 -- Bus Guardian Macrotick, Clock Output Select 1
MT is a Bus Guardian macrotick output signal from the CC. If a bus guardian device is not used in an application, this pin may be left open.
MFR4200 Data Sheet, Rev. 0 38 Freescale Semiconductor
Signal Descriptions
MT is active, irrespective of which physical layer is selected. If the RS485 driver type is selected, this pin is not used. This signal should be connected to the Bus Guardians on each channel. The pin can be configured to provide either high or reduced output drive. CLK_S1 is the CLKOUT clock frequency selection input signal. See Table 2-2. NOTE CLK_S[0:1] signals are inputs during the internal reset sequence and are latched by the internal reset signal level. While the CLK_S1 value is being latched, the output drive control is disabled and the internal pulldown resistor is connected to the pin. As CLK_S[0:1] signals share pins with Physical Layer Interface signals, pullup/down devices must be used for the selection. Recommended pullup/down resistor values for the CLK_S[0:1] inputs are given in Section 2.4.2, "Recommended Pullup/down Resistor Values".
2.2.3.11
ARM/DBG1/CLK_S0 -- Bus Guardian ARM, Debug Strobe Point 1, Clock Output Select 0
ARM is an output signal from the CC to a bus guardian. If a bus guardian device is not used in an application, this pin may be left open. ARM is active, irrespective of which physical layer is selected. If the RS485 driver type is selected, this pin is not used. This signal should be connected to the bus guardian on each channel. The pin can be configured to provide either high or reduced output drive. DBG1 is the debug strobe point output 1. The function output on this pin is selected by the debug port control register. Refer to Section 3.10, "Debug Port" for more information. CLK_S0 is the CLKOUT clock frequency selection input signal. See Table 2-2. NOTE CLK_S[0:1] signals are inputs during the internal reset sequence and are latched by the internal reset signal level. While the CLK_S0 value is being latched, the output drive control is disabled and the internal pulldown resistor is connected to the pin. As CLK_S[0:1] signals share pins with Physical Layer Interface signals, pullup/down devices must be used for selection. Recommended pullup/down resistor values for the CLK_S[0:1] inputs are given in the Section 2.4.2, "Recommended Pullup/down Resistor Values".
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 39
Device Overview
2.2.3.12
RXD_BG[1:2]/RXD[1:2]_485 -- PHY Received Data, RS485 Received Data
The function of this pin is selected by the SCM[0:1] bits in the MCR0 register. Refer to Section 3.2.3.2.1, "Module Configuration Register 0 (MCR0)" for more information. The pins can be configured to enable or disable either pullup or pulldown resistors on the pins. RXD_BG[1:2] are bus driver receive data input signals if the FlexRay Optical/Electrical PHY is configured: * RXD_BG1 is the input to the CC from Physical Layer Channel 1. * RXD_BG2 is the input to the CC from Physical Layer Channel 2. RXD[1:2]_485 are bus driver receive data input signals if the RS485 Driver type is configured: * RXD1_485 is the input to the CC from Physical Layer Channel 1 * RXD2_485 is the input to the CC from Physical Layer Channel 2.
2.2.3.13
TXEN[1:2]#/TXE[1:2]_485# -- PHY Transmit Enable, RS485 Transmit Enable
TXEN[1:2]# are bus driver transmit enable output signals if the FlexRay Optical/Electrical PHY is configured: * TXEN1# is the output of the CC to Physical Layer Channel 1 * TXEN2# is the output of the CC to Physical Layer Channel 2. TXE[1:2]_485# are Bus Driver Transmit Enable output signals if the RS485 Driver type is configured: * TXE1_485# is the output of the CC to the Physical Layer Channel 1. * TXE2_485# is the output of the CC to the Physical Layer Channel 2. Refer to Figure 2-10 for an example RS485 bus driver connection using external glue logic. The pins can be configured to provide either high or reduced output drive.
2.2.3.14
TXD_BG1/TXD1_485/ IF_SEL1 -- PHY Transmit Data 1, RS485 Transmit Data 1, Host Interface Selection 1
The function of this pin is selected by the SCM[0:1] bits in the MCR0 register. Refer to Section 3.2.3.2.1, "Module Configuration Register 0 (MCR0)" for more information. The pins can be configured to provide either high or reduced output drive. TXD_BG[1:2] are bus driver transmit data output signals if the FlexRay Optical/Electrical PHY is configured: * TXD_BG1 is the output of the CC to Physical Layer Channel 1 * TXD_BG2 is the output of the CC to Physical Layer Channel 2. TXD[1:2]_485 are bus driver transmit data output signals if the RS485 Driver type is configured: * TXD1_485 is the output of the CC to Physical Layer Channel 1. * TXD2_485 is the output of the CC to Physical Layer Channel 2.
MFR4200 Data Sheet, Rev. 0 40 Freescale Semiconductor
Signal Descriptions
IF_SEL1 is the CC external interface selection input signal. Refer to Table 2-1 for the selection coding. NOTE IF_SEL[0:1] signals are inputs during the internal reset sequence and are latched by the internal reset signal level. While the IF_SEL1 level is being latched, the output drive control is disabled and the internal pulldown resistor is connected to the pin. As IF_SEL[0:1] signals share pins with Physical Layer Interface signals, pullup/down devices must be used for the selection. Recommended pullup/down resistor values for the IF_SEL[0:1] inputs are given in Section 2.4.2, "Recommended Pullup/down Resistor Values".
2.2.3.15
TXD_BG2/TXD2_485 -- PHY Transmit Data 2, RS485 Transmit Data 2
The function of this pin is selected by the SCM[0:1] bits in the MCR0 register. Refer to Section 3.2.3.2.1, "Module Configuration Register 0 (MCR0)" for more information. TXD_BG[1:2] are bus driver transmit data output signals if the FlexRay Optical/Electrical PHY is configured: * TXD_BG1 is the output of the CC to Physical Layer Channel 1. * TXD_BG2 is the output of the CC to Physical Layer Channel 2. TXD[1:2]_485 are bus driver transmit data output signals if the RS485 Driver type is configured: * TXD1_485 is the output of the CC to the Physical Layer Channel 1. * TXD2_485 is the output of the CC to the Physical Layer Channel 2.
2.2.3.16
BGEN[1:2] -- Bus Guardian Enable
The CC monitors the schedule of Bus Guardians operations by checking the BGEN[1:2] input signals provided by Bus Guardians: BGEN1 is the input from the Physical Layer Channel 1 to the CC. BGEN2 is the input from the Physical Layer Channel 2 to the CC. If the RS485 Driver type is configured, the BGEN[1:2] inputs are not used and may be left open, but it is recommended to connect these pins to the logic "0" or logic "1" level either by enabling either pullup or pulldown resistors or by using external components. The pins can be configured to enable or disable either pullup or pulldown resistors on the pins.
2.2.3.17
CLKOUT -- Clock Output
CLKOUT is an external continuous clock output signal. The frequency of CLKOUT is selected by the CLK_S[0:1] pins. The CLKOUT signal is always active after power-up of the CC, in all CC states including the hard reset state. The pin can be configured to provide either high or reduced output drive.
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 41
Device Overview
As the CLKOUT signal can be disabled during internal resets, refer to Section 2.4.4, "External Output Clock" for more information on CLKOUT generation during external hard and internal resets.
2.2.3.18
RESET# -- External Reset
RESET# is an active-low control signal that acts as an input to initialize the CC to a known startup state.
2.2.3.19
INT_CC# -- Interrupt Output
INT_CC# is an AMI and HCS12 interfaces interrupt request output signal. The CC may request a service routine from the host to run. The interrupt is indicated by the logic level: it is asserted if the INT_CC# outputs a logic "0" and negated if it outputs a logic "1". The pin can be configured to provide either high or reduced output drive.
2.2.3.20
TEST
The TEST pin must be tied to VSS in all applications.
2.2.3.21
EXTAL/CC_CLK -- Crystal Driver, External Clock Pin
This pin can act as a crystal driver pin (EXTAL) or as an external clock input pin (CC_CLK). On reset, the device clock is derived from the input frequency on this pin. Refer to Figure 2-3 for Pierce oscillator connections and and Figure 2-4 for external clock connections. See also Chapter 6, "Oscillator (OSCV2)".
2.2.3.22
XTAL -- Crystal Driver Pin
XTAL is a crystal driver pin. Refer to Figure 2-3 for Pierce oscillator connections and and Figure 2-4 for external clock connections. See also Chapter 6, "Oscillator (OSCV2)".
MFR4200
EXTAL Rb Rs XTAL Q
C1
C2
Where: * * * * *
Q = 40 MHz crystal Rb is in the range 1M - 10 Mohms Rs is a lower value, which can be 0 Ohms C1 = C2 Oscillator supply output capacitor C3 = 220 nF
Refer to crystal manufacturer's product specification for recommended values
VDDOSC C3 VSSOSC VSSOSC VSSOSC
Figure 2-3. Pierce Oscillator Connections
MFR4200 Data Sheet, Rev. 0 42 Freescale Semiconductor
Signal Descriptions
MFR4200
EXTAL/CC_CLK Clkout
Where: G = 40MHz CMOS-compatible External Oscillator (VDDOSC-level)
XTAL Not connected (left open)
VDDOSC C3 VSSOSC VSSOSC
Figure 2-4. External Clock Connections
2.2.4
Power Supply Pins
NOTE All VSS pins must be connected together in the application. Because fast signal transitions place high, short-duration current demands on the power supply, use bypass capacitors with high-frequency characteristics and place them as close to the MFR4200 as possible. Bypass requirements depend on how heavily the MFR4200 pins are loaded.
Table 2-8. MFR4200 Power and Ground Connection Summary
Pin Number
MFR4200 power and ground pins are summarized in Table 2-8 and described below.
Mnemonic 64-pin LQFP VDD2_5 VSS2_5 VDDR VSSR VDDX[1:4] VSSX[1:4] VDDA VSSA VDDOSC VSSOSC 59 60 20 19 8, 37, 54, 35 9, 38, 53, 31 50 49 26 23
Nominal Voltage 2.5V 0V 3.3V 0V 3.3V 0V 3.3V 0V 2.5V 0V
Description
Internal power and ground generated by internal regulator
External power and ground, supply to supply to pin drivers and internal voltage regulator. External power and ground, supply to pin drivers.
Operating voltage and ground for the internal voltage regulator.
Provides operating voltage and ground for the internal oscillator. This allows the supply voltage to the oscillator to be bypassed independently. Internal power and ground generated by internal regulator.
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 43
Device Overview
2.2.4.1
VDDX, VSSX -- Power and Ground Pins for I/O Drivers
External power and ground for I/O drivers.
2.2.4.2
VDDR, VSSR -- Power and Ground Pins for I/O Drivers and Internal Voltage Regulator
NOTE The VDDR pin enables the internal 3.3 V to 2.5 V voltage regulator. If this pin is tied to ground, the internal voltage regulator is turned off.
External power and ground for I/O drivers and input to the internal voltage regulator.
2.2.4.3
VDD2_5, VSS2_5 -- Core Power Pins
Power is supplied to the MFR4200 core through VDD2_5 and VSS2_5. This 2.5 V supply is derived from the internal voltage regulator. No static load is allowed on these pins. If VDDR is tied to ground, the internal voltage regulator is turned off. NOTE No load is allowed except for bypass capacitors.
2.2.4.4
VDDA, VSSA -- Power Supply Pins for VREG
VDDA, VSSA are the power supply and ground input pins for the voltage regulator. They also provide the reference voltages for the internal voltage regulator.
2.2.4.5
VDDOSC, VSSOSC -- Power Supply Pins for OSC
VDDOSC, VSSOSC provide operating voltage and ground for the oscillator. This allows the supply voltage to the oscillator to be bypassed independently. This 2.5V voltage is generated by the internal voltage regulator. NOTE No load is allowed except for bypass capacitors.
2.3
System Clock Description
The internal Clock and Reset Generator block provides the internal clock signals for the FlexRay block and all other modules. Figure 2-5 shows the clock connections from the CRG to all modules. Refer to Chapter 5, "Clocks and Reset Generator" for detailed information on clock generation.
MFR4200 Data Sheet, Rev. 0 44 Freescale Semiconductor
System Clock Description
Host Interface
EXTAL
Receiver Channel A oscillator clock
CRG
Receiver Channel B
XTAL
Transmitter Channel A
Transmitter Channel A
TCU Debug Strobe External Clock Generator
Figure 2-5. Clock Connections
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 45
Device Overview
2.4
2.4.1
Modes of Operation
Overview
The MFR4200 device operates only in one user mode -- the normal mode. In normal mode, different host interfaces can be selected, each with its own associated external pin and interface configurations. The device has no low power modes.
2.4.2
Recommended Pullup/down Resistor Values
As IF_SEL[0:1] and CLK_S[0:1] signals share pins with physical layer interface signals, pullup/down devices must be used for selection. Recommended pullup/down resistor values for the IF_SEL[0:1] and CLK_S[0:1] inputs are given in Table 2-9.
Table 2-9. Recommended Pullup/down Resistor Values for IF_SEL[0:1] and CLK_S[0:1] Inputs
IO, Regulator, and Analog Supply Level (VDD5) 3.3V 5V
1
Pullup Resistor1 16 10
Pulldown Resistor1 47 47
Units kOhm kOhm
The listed values are calculated for the MFR4200 physical layer connection where no internal pullup/down resistors are assumed in the Electrical PHY at the TXD_BG1, BGT, ARM and MT interface lines. If an Electrical PHY device has internal pullup/down resistors connected to those signals, then the external pullup/down resistor values must be recalculated to ensure that VIL requirements for pulldown resistors or VIH requirements for pullup resistors for the chosen VDD5 are met. Refer to Section A.1.9, "I/O Characteristics" for more information on VIL, VIH and VDD5.
2.4.3
Host Controller Interfaces
The FlexRay communication controller can be connected to and controlled by microcontrollers with two types of interface. The MCU type is selected by the IF_SEL0 and IF_SEL1 inputs as shown in Section 2.1.3.1, "Interface Selection". The CC latches the values of the IF_SEL0 and IF_SEL1 signals when it leaves the hard reset state. The CC configures the interface for the type of MCU based on the latched values. The CC latches the values again after it has left the hard reset state (see Section 3.9.1, "Hard Reset State"). NOTE If the CC senses an unsupported mode on its IF_SEL pins, it stops all internal operations, does not perform or respond to any host transactions, stays in configuration mode, and does not integrate into the communication process. The following steps must be taken to select a correct MCU interface mode: 1. IF_SEL0, IF_SEL1 must be set to AMI or to HCS12 mode; 2. The hard reset signal of the CC must be asserted again.
MFR4200 Data Sheet, Rev. 0 46 Freescale Semiconductor
Modes of Operation
2.4.4
External Output Clock
The CC provides a continuous external output clock signal on the CLKOUT pin; this signal can be either disabled or set to a frequency of 4, 10, or 40 MHz. The signal is always active after the power-up of the CC, in all CC states including the hard reset state. The CLKOUT signal is disabled during the internal power-on and low voltage reset procedures (refer to Chapter 5, "Clocks and Reset Generator", Section A.2.2, "Chip Power-up and Voltage Drops", and the figures below (Figure 2-6, Figure 2-7, and Figure 2-8) for more information). The CLK_S[1:0] input pins enable/disable the CLKOUT signal and select its output frequency in accordance with the Table 2-2. Figure 2-6 and Figure 2-7 depict the CLKOUT generation during external hard reset and internal resets. Refer to Chapter 5, "Clocks and Reset Generator for more information.
VDD POR 1
tUPOSC2
OSC clk output 3 Internal startup counter
~16000 0 ~16000 T
3 Internal CLK_S[1:0] latches 3 CLKOUT divider internal reset , the divider is based on a counter CLKOUT divider/counter output
Latching window
Max. count value defined by CLK_S[1:0] latched values
CLKOUT output
Where:
Counter maximum value Counter starts counting
Counter is reset Counter does not count
Notes: 1 For more information on the POR, refer to A.2.2, "Chip Power-up and Voltage Drops". 2 For more information on the t UPOSC, refer to A.3, "Reset and Oscillator". 3 For more information on the Internal Startup Counter, the Internal CLK_S[1:0] latches, and the CLKOUT divider internal reset signals, refer to Chapter 5, "Clocks and Reset Generator.
Figure 2-6. CLKOUT Generation During Power-on Reset
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 47
Device Overview
LVR
1
2 Internal startup counter
0 ~16000 T
~16000
2 Internal CLK_S[1:0] latches 2 CLKOUT divider internal reset , the divider is based on a counter CLKOUT divider/counter output
Latching window
Max. count value defined by CLK_S[1:0] latched values
CLKOUT output
Where:
Counter maximum value Counter starts counting
Counter is reset Counter does not count
Notes: 1 For more information about the POR, refer to A.2.2, "Chip Power-up and Voltage Drops. 2 For more information about the Internal Startup Counter, the Internal CLK_S[1:0] latches, and the CLKOUT divider internal reset signals, refer to Chapter 5, "Clocks and Reset Generator.
Figure 2-7. CLKOUT Generation during Low Voltage Reset
MFR4200 Data Sheet, Rev. 0 48 Freescale Semiconductor
Modes of Operation
External Reset RESET# pin External reset after 1 internal glitch filter Latching window 2 Internal CLK_S[1:0] latches CLKOUT divider internal reset, the divider is based on a counter CLKOUT divider/counter output
10 MHz 4 MHz
CLKOUT output 3
max 8 T
Where:
CLKOUT stabilization time
Counter maximum value Counter starts counting
Counter is reset Counter does not count
Notes: 1 Refer to Chapter 5, "Clocks and Reset Generator for more information on the reset glitch filter. 2 For example, running at 10 MHz, then switching to 4 MHz. 3 When the external hard reset signal applied to the RESET# pin is negated, the CLKOUT signal frequency is stabilized after maximum 8 T.
Figure 2-8. CLKOUT Generation During External Hard Reset
2.4.5
MFR4200 Connection to FlexRay Network
Figure 2-9 shows an example of connecting a FlexRay Optical/Electrical PHY to the MFR4200. Figure 2-10 shows how to connect the RS485 transceiver to the CC.
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 49
Device Overview
RXD_BG1 TXD_BG1 TXEN1 BGE1
RXD1 TXD1 TXEN1 BGE1 Bus Guardian 1 Bus Driver 1
MFR4200 MT BGT ARM BGE2 RXD_BG2 TXD_BG2 TXEN1
MT BGT ARM BGE2 RXD2 TXD2 TXEN2 Bus Driver 2 Bus Guardian 2
Figure 2-9. Example: Connecting a FlexRay Optical/Electrical PHY to the MFR4200
RXD1_485 TXD1_485 TXEN1_485 BGE1 RXD1 TXD1 TXEN1 BGE1 Not Connected RS485 Transceiver 1
MFR4200 MT BGT ARM BGE2 RXD2_485 TXD2_485 TXEN2_485
MT BGT ARM BGE2 RXD2 TXD2 TXEN2
Inverter Not Connected Not Connected Not Connected Not Connected RS485 Transceiver 2
Figure 2-10. Example: Connecting an RS485 PHY to the MFR4200
MFR4200 Data Sheet, Rev. 0 50 Freescale Semiconductor
Resets and Interrupts
NOTE TXENn signals for the FlexRay Optical/Electrical PHY are multiplexed with TXENn_485 signals for the RS485 interfaces. Therefore, additional external inverters are required for these signals in the RS485 mode.
2.4.6
Power Mode
No power saving features are implemented in the MFR4200; the device operates only in power mode.
2.5
2.5.1
Resets and Interrupts
Overview
All possible MFR4200 internal interrupt sources are combined and provided to the host by means of one available interrupt line: INT_CC#. Refer to Chapter 3, "MFR4200 FlexRay Communication Controller" for more information on available interrupt sources. The type of interrupt is level sensitive. MFR4200 has the following resets: * external hard reset input signal RESET#. * internal power-on and low-voltage resets provided by the internal voltage regulator (refer to Chapter 5, "Clocks and Reset Generator" and Chapter 4, "Dual Output Voltage Regulator (VREG3V3V2)" for more information).
2.5.2
Resets
When a reset occurs, MFR4200 registers and control bits are changed to known startup states. Refer to the respective module chapters for register reset states for information of the different kind of resets and for register reset states.
2.5.2.1
I/O Pins
Refer to Chapter 3, "MFR4200 FlexRay Communication Controller" for configuration of MFR4200 pins out of reset.
2.5.3
Interrupt Sources
All interrupt sources available in the MFR4200 are controlled and indicated by the following registers: * Interrupt status register 0 (ISR0) * Interrupt enable register 0 (IER0) * Startup interrupt status register (SISR) * Startup interrupt enable register (SIER) For more information on interrupt sources, refer to Chapter 3, "MFR4200 FlexRay Communication Controller.
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 51
Device Overview
MFR4200 Data Sheet, Rev. 0 52 Freescale Semiconductor
Chapter 3 MFR4200 FlexRay Communication Controller
3.1 Introduction
This version of the MFR4200 communication controller block guide supports MFR4200 devices with the mask numbers 0L60X and 1L60X.
3.1.1
MFR4200 Features
The MFR4200 provides the following features. * The FlexRay protocol according to FlexRay Protocol Working document (PWD) V1.1, with differences described in the MFR4200 Protocol Implementation Document (PID) * Data rate of up to 10 Mbit/s on each of two channels * FlexRay frames with up to 254 payload bytes (padding is used for FlexRay payload data that exceeds 32-byte data size boundary) * One configurable receive FIFO * Configurable counters, status indicators, and interrupts dedicated to error signalling * Measured value indicators for clock synchronization * The status of up to four slots can be observed independently of CC receive message buffers * Configurable error signaling * Fractional macroticks (MT) supported for clock correction * 59 message buffers, each with up to 32 payload bytes * Message buffers configurable with state or event semantics * Each message buffer can be configured as a receive message buffer, as a transmit message buffer (single or double), or as a part of the receive FIFO * Receive background buffers for each channel * The host accesses all buffers by means of three active message buffers (active transmit message buffer, active receive message buffer and active receive FIFO buffer) * Filtering for frame ID, cycle counter, and channel for receive and transmit message buffers * Filtering for frame ID, channel, and message ID for the receive FIFO * Maskable interrupt sources provided over one interrupt line * Two types of host interface: HCS12 interface and asynchronous memory interfaces * Minislot action point offset is configurable * Static slot action point offset is configurable * Hardware selectable clock output to drive external host devices: disabled/4/10/40 MHz * Electrical physical layer interface compatible with dedicated FlexRay physical layer. Industry standard RS485 physical layer interface also available.
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 53
MFR4200 FlexRay Communication Controller
3.1.2
3.1.2.1
* * *
MFR4200 Implementation Parameters and Constraints
Implementation Parameters
The duration of a microtick (T) is one CC_CLK period (25 ns at 40 MHz); a microtick starts with a rising edge of CC_CLK. The CC internal initialization procedure lasts for 1025 cycles of the CC_CLK clock; it starts after leaving the hard reset state (see Section 3.9.1, "Hard Reset State"). After the external hard reset signal on the RESET# pin is negated, the CLKOUT signal frequency is stabilized after 8 T. NOTE Refer to Section 3.8, "External 4/10 MHz Output Clock" for more information on the CLKOUT output.
3.1.2.2
* * * * * *
Implementation Constraints
The maximum external clock frequency is 40 MHz (CC_CLK). Minislot length down to 2 s (at CC_CLK frequency of 40 MHz) for the dynamic segment. Minislot length is configurable (minimum 2 MT). The maximum communication cycle length is 16 ms. Collision avoidance symbol length is set to 30 bits. The maximum configurable static slot length is 255 MT.
3.2
3.2.1
Memory Map and Registers
Introduction
This section describes the memory map, and the content and use of the registers in the host interface module. A memory map of the CC is shown in Table 3-1. The host accesses four types of CC registers: * General control registers * Buffer control, configuration, status and filtering register sets * FIFO acceptance/rejection filter register sets * Fifty-nine (59) configurable message buffers. The host can configure every buffer as a receive message buffer, as a transmit message buffer (single or double), or as a FIFO receive message buffer. All buffers are accessible through three active windows mirrored to the memory map: -- One active transmit message buffer -- One active receive message buffer -- One active FIFO buffer
MFR4200 Data Sheet, Rev. 0 54 Freescale Semiconductor
Memory Map and Registers
NOTE The CC has two shadow receive message buffers per channel (four shadow buffers, in total); these allow reception while the host accesses the receive message buffers. One additional shadow message buffer is used for internal operations. Therefore, only 59 buffers out of 64 are available to the user as message buffers.
3.2.2
Register Map Summary
Table 3-1. Register Map Summary
Address (Hex) 0 2 4 6 8 0A 0C 0E 10 12 14 16 18 1A 1C 1E 20 22 24 26 28 2A Address (Dec) 0 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40 42 Hard Reset (Hex) 815 9042 8000 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Register MNR MVR0 MCR0 MCR1 CMCVR CCCVR PSR ISR0 SISR CHIER IER0 SIER FSIZR FAFCHR FAFMIDVR FAFMIDMR FRFFIDVR FRFFIDMR RBIVECR TBIVECR SSCIR SSCIMR
Description Magic Number Register Module Version Register 0 Module Configuration Register 0 Module Configuration Register 1 Current Macrotick Counter Value Register Current Cycle Counter Value Register Protocol State Register Interrupt Status Register 0 Startup Interrupt Status Register CHI Error Register Interrupt Enable Register 0 Startup Interrupt Enable Register FIFO Size Register FIFO Acceptance/Rejection Filter Channel Register FIFO Acceptance Filter Message ID Value Register FIFO Acceptance Filter Message ID Mask Register FIFO Rejection Filter Frame ID Value Register FIFO Rejection Filter Frame ID Mask Register Receive Buffer Interrupt Vector Register Transmit Buffer Interrupt Vector Register Slot Status Counter Incrementation Register Slot Status Counter Interrupt Mask Register
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 55
MFR4200 FlexRay Communication Controller
Table 3-1. Register Map Summary
Register CSECnR TICR0CS TICR0MO TICR1CS TICR1MO DBPCR BGSR DCR NMVLR GNMVnR Description Channel Status Error Counter n Register, n=[0:1] Timer Interrupt Configuration Register 0 Cycle Set Timer Interrupt Configuration Register 0 Macrotick Offset Timer Interrupt Configuration Register 1 Cycle Set Timer Interrupt Configuration Register 1 Macrotick Offset Debug Port Control Register Bus Guardian Status Register Delay Counter Register Network Management Vector Length Register Global Network Management Vector n Register, n=[0:5] Address (Hex) 2C, 2E 30 32 34 36 38 3A 3C 3E GNMV0R=40 GNMV1R=42 GNMV2R=44 GNMV3R=46 GNMV4R=48 GNMV5R=4A SSC0R=4C SSC1R=4E SSC2R=50 SSC3R=52 SSC4R=54 SSC5R=56 SSC6R=58 SSC7R=5A SSCC0R=5C SSCC1R=5E SSCC2R=60 SSCC3R=62 SSCC4R=64 SSCC5R=66 SSCC6R=68 SSCC7R=6A SSS0R=6C SSS1R=6E SSS2R=70 SSS3R=72 Address (Dec) 44, 46 48 50 52 54 56 58 60 62 GNMV0R=64 GNMV1R=66 GNMV2R=68 GNMV3R=70 GNMV4R=72 GNMV5R=74 SSC0R=76 SSC1R=78 SSC2R=80 SSC3R=82 SSC4R=84 SSC5R=86 SSC6R=88 SSC7R=90 SSCC0R=92 SSCC1R=94 SSCC2R=96 SSCC3R=98 SSCC4R=100 SSCC5R=102 SSCC6R=104 SSCC7R=106 SSS0R=108 SSS1R=110 SSS2R=112 SSS3R=114 Hard Reset (Hex) 0 0 0 0 0 0 0 0 0 0
SSCnR
Slot Status Counter n Register, n=[0:7]
0
SSCCnR
Slot Status Counter Condition n Register, n=[0:7]
0
SSSnR
Slot Status Selection n Register, n=[0:3]
0
MFR4200 Data Sheet, Rev. 0 56 Freescale Semiconductor
Memory Map and Registers
Table 3-1. Register Map Summary
Register SSnR Description Slot Status n Register, n=[0:7] Address (Hex) SS0R=74 SS1R=76 SS2R=78 SS3R=7A SS4R=7C SS5R=7E SS6R=80 SS7R=82 84 86 88 8A 8E 90 92 94 96 98 Address (Dec) SS0R=116 SS1R=118 SS2R=120 SS3R=122 SS4R=124 SS5R=126 SS6R=128 SS7R=130 132 134 136 138 142 144 146 148 150 152 Hard Reset (Hex) 0
SWCTRLR SWSAR SWSBR WMCTRLR NSSR SPLR MPLDR SYNCFR SYNCHR MVR1
Symbol Window Control Register Symbol Window Status channel A Register Symbol Window Status channel B Register Wakeup Mechanism Control Register Number of Static Slots Register Static Payload Length Register Maximum Payload Length Dynamic Register Sync Frame Register Sync Frame Header Register Module Version Register 1
0 0 0 0 1 0 0 0 undefined For mask set number: 0L60X - 0; 1L60X - 0001 0 0 0 0 0 0 0 undefined undefined undefined undefined undefined
HIPDSR PLPDSR HIPPER HIPPCR PLPPER PLPPCR VREGSR BDR IDLR NMLR BGTR SSLR
Host Interface Pins Drive Strength Register Physical Layer Pins Drive Strength Register Host Interface Pins Pullup/down Enable Register Host Interface Pins Pullup/down Control Register Physical Layer Pins Pullup/down Enable Register Physical Layer Pins Pullup/down Control Register Voltage Regulator Status Register Bit Duration Register Idle Detection Length Register Nominal Macrotick Length Register Bus Guardian Tick Register Static Slot Length Register
9A 9C 9E A0 A2 A4 A6 A8 AA AC AE B0
154 156 158 160 162 164 166 168 170 172 174 176
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 57
MFR4200 FlexRay Communication Controller
Table 3-1. Register Map Summary
Register CLR MPCLR MPCHR MCLDAR TSSLR SWCR NITCR CSMR MSFR LDTSR MSLR MSAPOR SSAPOR MOCWCFR DCAR DCBR LNLR MOCWCPR MOCR MRCR CDDR SOCCTR WUSTXIR WUSTXLR SYNFAFMR SYNFAFVR SYNFRFR EOCR ERCR Description Cycle Length Register Microticks per Cycle Low Register Microticks per Cycle High Register Maximum Cycle Length Deviation Register Transmit Start Sequence Length Register Symbol Window Configuration Register Network Idle Time Configuration Register Coldstart Maximum Register Maximum Sync Frames Register Latest Dynamic Transmission Start Register Minislot Length Register Minislot Action Point Offset Register Static Slot Action Point Offset Register Maximum Odd Cycles Without Clock Correction Fatal Register Delay Compensation Channel A Register Delay Compensation Channel B Register Listen timeout with Noise Length Register Maximum Odd Cycles Without clock Correction Passive Register Maximum Offset Correction Register Maximum Rate Correction Register Cluster Drift Damping Register Start of Offset Correction Cycle Time Register Wakeup Symbol TX Idle Register Wakeup Symbol TX Low Register Sync Frame Acceptance Filter Mask Register Sync Frame Acceptance Filter Value Register Sync Frame Rejection Filter Register External Offset Correction Register External Rate Correction Register Address (Hex) B2 B4 B6 B8 BA BC BE C0 C2 C4 C6 C8 CA CC D0 D2 D6 D8 DA DC DE E0 EA EC EE F0 F2 F4 F6 Address (Dec) 178 180 182 184 186 188 190 192 194 196 198 200 202 204 208 210 214 216 218 220 222 224 234 236 238 240 242 244 246 Hard Reset (Hex) undefined undefined undefined undefined undefined undefined undefined undefined undefined undefined undefined undefined undefined undefined undefined undefined undefined undefined undefined undefined undefined undefined 0 0 undefined undefined undefined undefined undefined
MFR4200 Data Sheet, Rev. 0 58 Freescale Semiconductor
Memory Map and Registers
Table 3-1. Register Map Summary
Register ECCR AFBFRID AFBCCPLR AFBCRCR AFBDATAnR Description External Correction Control Register Active FIFO Buffer Frame ID Register Active FIFO Buffer Cycle Counter and Payload Length Register Active FIFO Buffer Header CRC Register Active FIFO Buffer Data n Register, n=[0:15] Address (Hex) F8 100 102 104 Address (Dec) 248 256 258 260 Hard Reset (Hex) undefined undefined undefined undefined undefined
ARFBDATA0R=106 ARFBDATA0R=262 ... ... ARFBDATA15R=124 ARFBDATA15R=292 126 140 142 144 ARBDATA0R=146 ... ARBDATA15R=164 166 180 182 184 ATBDATA0R=186 ... ATBDATA15R=1A4 1A6 BUFCS0R=200 BUFCS1R=204 ... BUFCS57R=2E4 BUFCS58R=2E8 CCF0R=202 CCF1R=206 ... CCF57R=2E6 CCF58R=2EA. 326 328 294 320 322 324 ARBDATA0R=326 ... ARBDATA15R=356 358 384 386 388 ATBDATA0R=390 ... ATBDATA15R=420 422 BUFCS0R=512 BUFCS1R=516 ... BUFCS57R=740 BUFCS58R=744 CCF0R=514 CCF1R=518 ... CCF57R=742 CCF58R=746 806 808
AFBMBSSVR ARBFRID ARBCCPLR ARBCRCR ARBDATAnR
Active FIFO Buffer Message Buffer Slot Status Vector Register Active Receive Buffer Frame ID Register Active Receive Buffer Cycle Counter and Payload Length Register Active Receive Buffer Header CRC Register Active Receive Buffer Data n Register, n=[0:15] Active Receive Buffer Message Buffer Slot Status Vector Register Active Transmit Buffer Frame ID Register Active Transmit Buffer Cycle Counter and Payload Length Register Active Transmit Buffer Header CRC Register Active Transmit Buffer Data n Register, n=[0:15] Active Transmit Buffer Message Buffer Slot Status Vector Register Message Buffer Control, Configuration and Status n Register, n=[0:58]
undefined undefined undefined undefined undefined
ARBMBSSVR ATBFRID ATBCCPLR ATBCRCR ATBDATAnR
undefined undefined undefined undefined undefined
ATBMBSSVR BUFCSnR
undefined IFLG, IENA, CFG and VALID bits are reset to 0; others are undefined undefined
CCFnR
Cycle Counter Filter n Register, n=[0:58]
CCFCR EHLR
Clock Correction Failed Counter Register Error Handling Level Register
undefined undefined
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 59
MFR4200 FlexRay Communication Controller
Table 3-1. Register Map Summary
Register RCVR OCVR EMCR OMCR EMAnR Description Rate Correction Value Register Offset Correction Value Register Even Measurement Counter Register Odd Measurement Counter Register Even Measurement channel A n Register, n=[0:15] Even Measurement channel B n Register, n=[0:15] Even Sync ID n Register, n=[0:15] Address (Hex) 32A 32C 33C 33E EMA0R=340 ... EMA15R=35E EMB0R=360 ... EMB15R=37E EID0R=380 ... EID15R=39E OMA0R=3A0 ... OMA15R=3BE OMB0R=3C0 ... OMB15R=3DE OSFID0R=3E0 ... OSFID15R=3FE Address (Dec) 810 812 828 830 EMA0R=832 ... EMA15R=862 EMB0R=864 ... EMB15R=894 EID0R=896 ... EID15R=926 OMA0R=928 ... OMA15R=958 OMB0R=960 ... OMB15R=990 OSFID0R=1008 ... OSFID15R=1022 Hard Reset (Hex) undefined undefined undefined undefined undefined
EMBnR
undefined
ESFIDnR
undefined
OMAnR
Odd Measurement channel A n Register, n=[0:15] Odd Measurement channel B n Register, n=[0:15] Odd Sync Frame ID n Register, n=[0:15]
undefined
OMBnR
undefined
OSFIDnR
undefined
3.2.3
Register Descriptions
NOTE All registers not shown in the CC memory map registers are not implemented in hardware. Any read operation on bits marked as `Reserved' will return an undefined value (either `1' or `0'). The host must take care that bits marked as `Reserved' are set to 0 when writing. The reset value indicated for each register is the value that the register has after a hard reset operation. Meaning of the bit field character in the registers layout: - `r' indicates that the bit-field may be read by host - `w' denotes that the bit-field may be updated by host - `h' means that the bit-field is updated by the communication controller
MFR4200 Data Sheet, Rev. 0
A condensed overview of all registers is provided in Section 3.2.2, "Register Map Summary" * * * * *
60
Freescale Semiconductor
Memory Map and Registers
* *
*
Combinations such as `rh', `rw' or `rwh' appear in the text indicating the different access possibilities. An additional asterisk `*' indicates an exceptional behavior, i.e. under which conditions the host is allowed to write a `rw' or `rwh' bit-field, etc. In such cases, refer to the detailed bit-field description. Descriptions of configuration registers specify the possible range of values in square brackets - [,].
NOTE The configuration registers' possible ranges of values, specified in square brackets [ : ], denote only the MFR4200 implementation constraints. Not every configuration supported by the MFR4200 implementation is necessarily a valid configuration of an application network. For more information about configuration constraints, refer to the PWD: Configuration Constraints Notations chapter. A key to the register diagrams is shown in Figure 3-1.
Section Number Register Full Name Register Short Name
FlexRay Protocol Related Parameter
3.2.3.3.1
Bit Duration Register (BDR)
FlexRay Protocol Related Parameter - gdBit Address0xA8 Reset undefined state 15 Reserved r 14 Reserved r 13 Reserved r 12 Reserved r 11 Reserved r 10 Reserved r 9 Reserved r 8 Reserved r
7 Reserved r
6 BD6 rw*
5 BD5 rw*
4 BD4 rw*
3 BD3 rw*
2 BD2 rw*
1 BD1 rw*
0 BD0 rw*
Register Address
Register Reset Value/State
Bit Number
Bit Access Scheme
Bit Name
Figure 3-1. Key to Register Diagrams
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 61
MFR4200 FlexRay Communication Controller
3.2.3.1
3.2.3.1.1
Controller's Constants Registers
Module Version Register 0 (MVR0)
Address 0x2 Reset 0x9042 15 MJFR3 r 14 MJFR2 r 13 MJFR1 r 12 MJFR0 r 11 MINFR3 r 10 MINFR2 r 9 MINFR1 r 8 MINFR0 r
7 PDA7 r
6 PDA6 r
5 PDA5 r
4 PDA4 r
3 PDA3 r
2 PDA2 r
1 PDA1 r
0 PDA0 r
Figure 3-2. Module Version Register 0
The read-only MVR0, together with MVR1 (see following section), holds the version number of the implementation. The MVR0 contains the following fields: PDA[0:7] denotes the device PartID1. MINFR[0:3] denotes the minor release of the FlexRay core in the MFR4200 device. MJFR[0:3] denotes the major release of the FlexRay core in the MFR4200 device. 3.2.3.1.2
Address 0x98 Reset Device MFR4200 MFR4200 Mask Set Number 0L60X 1L60X Reset Value 0x0000 0x0001
Module Version Register 1 (MVR1)
15 PDB7 r
14 PDB6 r
13 PDB5 r
12 PDB4 r
11 PDB3 r
10 PDB2 r
9 PDB1 r
8 PDB0 r
7 MJMR3 r
6 MJMR2 r
5 MJMR1 r
4 MJMR0 r
3 MINMR3 r
2 MINMR2 r
1 MINMR1 r
0 MINMR0 r
Figure 3-3. Module Version Register 1
The read-only MVR1, together with MVR0 (see previous section), holds the version number of the implementation. The MVR1 contains:
MFR4200 Data Sheet, Rev. 0 62 Freescale Semiconductor
Memory Map and Registers
PDB[0:7] denotes the device PartID2. MINMR[0:3] denotes the minor release of the MFR4200 device. MJMR[0:3] denotes the major release of the MFR4200 device. 3.2.3.1.3
Address 0x0 Reset 0x0815 15 MN15 r 14 MN14 r 13 MN13 r 12 MN12 r 11 MN11 r 10 MN10 r 9 MN9 r 8 MN8 r
Magic Number Register (MNR)
7 MN7 r
6 MN6 r
5 MN5 r
4 MN4 r
3 MN3 r
2 MN2 r
1 MN1 r
0 MN0 r
Figure 3-4. Magic Number Register
This read-only register contains the arbitrary value 0x0815; it is used for endianess and memory map address offset checks. NOTE The MNR contains 0x0000 while the controller is initializing after leaving the hard reset state. Only after this initialization is completed, does it contain the value 0x0815. After the controller leaves the hard reset state, the host must wait until the initialization is completed before reading or writing to the controller. The initialization takes 1025 cycles (CC_CLK) after de-assertion of the hard reset. During the internal initialization procedure time, the host must not access any CC register except MNR (see Section 3.2.3.1.3, "Magic Number Register (MNR)"), which acknowledges the completion of the internal initialization procedure.
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 63
MFR4200 FlexRay Communication Controller
3.2.3.2
3.2.3.2.1
Configuration Registers
Module Configuration Register 0 (MCR0)
Address 0x4 Reset 0x8000 15 CONFIG rwh 14 Reserved r 13 Reserved r 12 Reserved r 11 Reserved r 10 Reserved r 9 CBE rw* 8 CAE rw*
7 Reserved r
6 ENSYNFF rw*
5 NSYNC rh
4 SCM1 rw*
3 SCM0 rw*
2 Reserved r
1 DIAGSTOP rw
0 Reserved r
Figure 3-5. Module Configuration Register 0
NOTE Setting the CONFIG bit and writing to other bits in this register can be done in separate instructions only. Trying to set CONFIG and change other bits at the same time will change CONFIG only -- the other bits will not be changed. Clearing CONFIG and writing to other bits in the MCR0 can be done simultaneously in one instruction.
DIAGSTOP -- Diagnosis Stop State Bit
When this bit is set by the host, the CC immediately enters the Diagnosis Stop state. Any ongoing transmission or reception is aborted, and synchronization with the FlexRay communication bus is lost. When this bit is cleared by the host, the controller enters the configuration state. 1 - The CC is in the Diagnosis Stop state. 0 - The CC is not in the Diagnosis Stop state.
SCM0, SCM1 -- Serial Communication Mode Bits 0 and 1
These bits define the type of bus driver connected to the controller. It can be written during the configuration state only.
Table 3-2. Bus Driver Type Selection
Driver type RS485 (IDLE state coded as "0") Optical/Electrical PHY -- RS485 (IDLE state coded as "1") SCM1 0 0 1 1 SCM0 0 1 0 1
MFR4200 Data Sheet, Rev. 0 64 Freescale Semiconductor
Memory Map and Registers
NOTE It is not possible to mix different RS485's in a cluster or per channel, or to mix RS485 and Optical/Electrical PHY.
NSYNC -- Node Synchronized
This read-only bit is set when the controller enters the normal state in the course of startup or reintegration. The NSYNC is set by the CC in the NIT preceding a transition to normal operation. The NSYNC is cleared by the CC in the NIT, prior to switching to the normal passive state (the `yellow' error state; see Section 3.2.3.6.5, "Error Handling Level Register (EHLR)") or the Diagnosis Stop state (the `red' error state; see Section 3.2.3.6.5, "Error Handling Level Register (EHLR)"), due to... * ...the correction value exceeding MRCR (see Section 3.2.3.3.25, "Maximum Rate Correction Register (MRCR)") * ...the offset correction value exceeding MOCR (see Section 3.2.3.3.24, "Maximum Offset Correction Register (MOCR)") * ...the CCFCR value (see Section 3.2.3.6.4, "Clock Correction Failed Counter Register (CCFCR)") exceeding MOCWCPR (see Section 3.2.3.5.3, "Maximum Odd Cycles Without clock Correction Passive Register (MOCWCPR)") or MOCWCFR (see Section 3.2.3.5.2, "Maximum Odd Cycles Without Clock Correction Fatal Register (MOCWCFR)). 1 - Node is synchronized to cluster. 0 - Node is not synchronized to cluster.
ENSYNFF -- Enable Sync Frame Filters
This bit enables/disables acceptance and rejection filtering for sync frames (see Section 3.2.3.8.1, "Sync Frame Acceptance Filter Value Register (SYNFAFVR)", Section 3.2.3.8.2, "Sync Frame Acceptance Filter Mask Register (SYNFAFMR)" and Section 3.2.3.8.3, "Sync Frame Rejection Filter Register (SYNFRFR)"). 1 - Sync frames are used for the clock synchronization only when they pass the acceptance filter and are not rejected by the rejection filter. 0 - Sync frames are used for the clock synchronization independently of the acceptance and rejection filter.
CAE -- Channel A Enable
This bit enables channel A. It can be written during the configuration state only. 1 - Channel A is enabled. 0 - Channel A is disabled.
CBE -- Channel B Enable
This bit enables channel B. It can be written during the configuration state only. 1 - Channel B is enabled. 0 - Channel B disabled.
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 65
MFR4200 FlexRay Communication Controller
CONFIG -- Configuration State Bit
When the host sets this bit, the CC immediately enters the configuration state. The controller aborts any ongoing transmission or reception and abandons synchronization to the FlexRay cluster. When the host clears this bit, the controller resumes normal operation (see Section 3.9.2, "Configuration State"). After a hard reset, the controller automatically enters the configuration state (CONFIG bit set). 1 - Configuration state. 0 - Normal operation. 3.2.3.2.2
Address 0x6 Reset 0x0 15 Reserved r 14 Reserved r 13 Reserved r 12 Reserved r 11 Reserved r 10 AYTG rw* 9 ARL rw* 8 CSI rw*
Module Configuration Register 1 (MCR1)
7 Reserved r
6 ECSE rw*
5 BGSMDSE rw*
4 BGSMSWE rw*
3 Reserved r
2 MATE rw*
1 Reserved r
0 Reserved r
Figure 3-6. Module Configuration Register 1
MATE -- Media Access Test Enable
This flag enables the media access test in the MFR4200 bus guardian (BG) monitor. This flag may be written in the configuration state only. 1 - Media access test is enabled. 0 - Media access test is disabled.
BGSMSWE -- BG Schedule Monitoring Symbol Window Enable
This flag determines the behavior of the MFR4200 bus guardian schedule monitor during the symbol window. It may be written in the configuration state only. 1 - BG is expected to be open during symbol window of the communication cycle. 0 - BG is expected to be closed during symbol window of the communication cycle.
BGSMDSE -- BG Schedule Monitoring Dynamic Segment Enable
This flag determines the behavior of the MFR4200 bus guardian monitor during the dynamic segment of the communication cycle. It may be written in the configuration state only. 1 - BG expected to be open during dynamic segment of the communication cycle. 0 - BG expected to be closed during dynamic segment of the communication cycle.
MFR4200 Data Sheet, Rev. 0 66 Freescale Semiconductor
Memory Map and Registers
ECSE -- External Clock Synchronization Enable
This configuration flag enables/disables the External Clock Synchronization. It can be written during the configuration state only. 1 - External Clock Synchronization is enabled. 0 - External Clock Synchronization is disabled.
CSI -- Coldstart Inhibit Mode
The node can be prevented from initializing the TDMA communication schedule by setting the CSI bit to `1' in the configuration state. It can be written during the configuration state only. 1 - Node is in Coldstart Inhibit mode. 0 - Node is not in Coldstart Inhibit mode.
ARL -- Allow Red Level
If this bit is set, the transition to the red error handling level (Diagnosis Stop state) due to clock sync errors is allowed. It may be written in the configuration state only. 1 - Error handling level red is allowed (the CC enters the Diagnosis Stop state). 0 - Error handling level red is prohibited (the CC enters the configuration state).
AYTG -- Allow Yellow to Green
If this bit is set, the transition from the yellow error handling level to the green error handling level is allowed. It may be written in the configuration state only. 1 - Transition from yellow to green is allowed. 0 - Transition from yellow to green is prohibited. 3.2.3.2.3
Address 0x9A Reset 0x0 15 Reserved r 14 Reserved r 13 Reserved r 12 Reserved r 11 Reserved r 10 Reserved r 9 Reserved r 8 Reserved r
Host Interface and Physical Layer Pins Drive Strength Register (HIPDSR)
7 Reserved r
6 Reserved r
5 INT_CC# rw
4 CLKOUT rw
3 ARM/DBG1/ CLK_S0 rw
2 MT/CLK_S1 rw
1 BGT/DBG2/ IF_SEL0 rw
0 PAD[0:15]/ D[15:0] rw
Figure 3-7. Host Interface Pins Drive Strength Register
This register controls the drive strength of the MFR4200 pins identified in Figure 3-7.
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 67
MFR4200 FlexRay Communication Controller
1 - Pin drive strength is partial (see Appendix A.1.9, "I/O Characteristics"). 0 - Pin drive strength is full (see Appendix A.1.9, "I/O Characteristics"). 3.2.3.2.4
Address 0x9C Reset 0x0 15 Reserved r 14 Reserved r 13 Reserved r 12 Reserved r 11 Reserved r 10 Reserved r 9 Reserved r 8 Reserved r
Physical Layer Pins Drive Strength Register (PLPDSR)
7 Reserved
6 Reserved
5 Reserved
4 Reserved
3 TXD_BG2/ TXD2_485 rw
2 TXD_BG1/ TXD1_485/ IF_SEL1 rw
1 TXEN2#/ TXE2_485# rw
0 TXEN1#/ TXE1_485# rw
r
r
r
r
Figure 3-8. Physical Layer Pins Drive Strength Register
This register controls the drive strength of the MFR4200 pins identified in Figure 3-8. 1 - Pin drive strength is partial (see Section A.1.9, "I/O Characteristics"). 0 - Pin drive strength is full (see Section A.1.9, "I/O Characteristics"). 3.2.3.2.5
Address 0x9E Reset 0x0 15 ECLK_CC rw 14 WE#/ RW_CC# rw 13 CE#/LSTRB rw 12 D[15:0]/ PAD[0:15] rw 11 ACS5 rw 10 ACS4 rw 9 OE#/ACS3 rw 8 A9/ACS2 rw
Host Interface Pins Pullup/down Enable Register (HIPPER)
7 A8/ACS1 rw
6 A7/ACS0 rw
5 A6/ XADDR14 rw
4 A5/ XADDR15 rw
3 A4/ XADDR16 rw
2 A3/ XADDR17 rw
1 A2/ XADDR18 rw
0 A1/ XADDR19 rw
Figure 3-9. Host Interface Pins Pullup/down Enable Register
This register enables the pullups and pulldowns on MFR4200 pins identified in Figure 3-9. The pullup/down state is controlled by the HIPPCR (see Section 3.2.3.2.6, "Host Interface Pins Pullup/down Control Register (HIPPCR)"). 1 - Pullup/down resistor enabled.
MFR4200 Data Sheet, Rev. 0 68 Freescale Semiconductor
Memory Map and Registers
0 - Pullup/down resistor disabled. 3.2.3.2.6
Address 0xA0 Reset 0x0 15 ECLK_CC rw 14 WE#/ RW_CC# rw 13 CE#/LSTRB rw 12 D[15:0]/ PAD[0:15] rw 11 ACS5 rw 10 ACS4 rw 9 OE#/ACS3 rw 8 A9/ACS2 rw
Host Interface Pins Pullup/down Control Register (HIPPCR)
7 A8/ACS1 rw
6 A7/ACS0 rw
5 A6/ XADDR14 rw
4 A5/ XADDR15 rw
3 A4/ XADDR16 rw
2 A3/ XADDR17 rw
1 A2/ XADDR18 rw
0 A1/ XADDR19 rw
Figure 3-10. Host Interface Pins Pullup/down Control Register
This register controls the pullups and pulldowns on MFR4200 pins identified in Figure 3-10. These functions can be enabled/disabled by the HIPPER (see Section 3.2.3.2.5, "Host Interface Pins Pullup/down Enable Register (HIPPER)"). 1 - Pullup selected. 0 - Pulldown selected. 3.2.3.2.7
Address 0xA2 Reset 0x0 15 Reserved r 14 Reserved r 13 Reserved r 12 Reserved r 11 Reserved r 10 Reserved r 9 Reserved r 8 Reserved r
Physical Layer Pins Pullup/down Enable Register (PLPPER)
7 Reserved r
6 Reserved r
5 Reserved r
4 Reserved r
3 BGEN2 rw
2 BGEN1 rw
1 RXD_BG2/ RXD2_485 rw
0 RXD_BG1/RX D1_485 rw
Figure 3-11. Physical Layer Pins Pullup/down Enable Register
This register enables the pullups and pulldowns on MFR4200 pins identified in Figure 3-11. The pullup/down state is controlled by the PLPPCR (see Section 3.2.3.2.8, "Physical Layer Pins Pullup/down Control Register (PLPPCR)"). 1 - Pullup/down enabled. 0 - Pullup/down disabled.
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 69
MFR4200 FlexRay Communication Controller
3.2.3.2.8
Address 0xA4 Reset 0x0 15 Reserved r
Physical Layer Pins Pullup/down Control Register (PLPPCR)
14 Reserved r
13 Reserved r
12 Reserved r
11 Reserved r
10 Reserved r
9 Reserved r
8 Reserved r
7 Reserved r
6 Reserved r
5 Reserved r
4 Reserved r
3 BGEN2 rw
2 BGEN1 rw
1 RXD_BG2/ RXD2_485 rw
0 RXD_BG1/RX D1_485 rw
Figure 3-12. Physical Layer Pins Pullup/down Control Register
This register controls the pullups and pulldowns on MFR4200 pins identified in Figure 3-12. These function can be enabled/disabled by the PLPPER (see Section 3.2.3.2.7, "Physical Layer Pins Pullup/down Enable Register (PLPPER)"). 1 - Pullup selected. 0 - Pulldown selected. 3.2.3.2.9
Address 0xA6 Reset 15 Reserved r 14 Reserved r 13 Reserved r 12 Reserved r 11 Reserved r 10 Reserved r 9 Reserved r 8 Reserved r
Voltage Regulator Status Register (VREGSR)
7 Reserved r
6 Reserved r
5 Reserved r
4 Reserved r
3 Reserved r
2 Reserved r
1 Low-voltage Status rwh
0 Power-on Status rwh
Figure 3-13. Voltage Regulator Status Register
This register indicates the occurrence of internal low-voltage and/or power-on reset events caused by power-on of MFR4200 device or supply voltage disturbances. The Low-voltage Status and Power-on Status bits do not cause an interrupt over the INT_CC# pin; therefore, the host may read this register to check the status. The host clears any status bit in VREGSR by reading VREGSR. The CC sets a status bit in the VREGSR again when it detects the condition for that bit.
MFR4200 Data Sheet, Rev. 0 70 Freescale Semiconductor
Memory Map and Registers
Low-voltage Status, Power-on Status
1 - MFR4200 has been reset internally due to reset conditions sensed by the voltage regulator. 0 - MFR4200 has not been reset internally. NOTE Low-voltage and power-on events generated by the MFR4200 voltage regulator cause the internal MFR4200 reset with the same consequences as in the case of an external hard reset. Therefore, changes to the VREGSR bits can be read by the host only after the MFR4200 leaves the internal reset state.
3.2.3.3
3.2.3.3.1
Control Registers
Bit Duration Register (BDR)
FlexRay Protocol Related Parameter - gdBit Address 0xA8 Reset undefined state 15 Reserved r 14 Reserved r 13 Reserved r 12 Reserved r 11 Reserved r 10 Reserved r 9 Reserved r 8 Reserved r
7 Reserved r
6 BD6 rw*
5 BD5 rw*
4 BD4 rw*
3 BD3 rw*
2 BD2 rw*
1 BD1 rw*
0 BD0 rw*
Figure 3-14. Bit Duration Register
This register controls the number of microticks per bit. Writing this register is possible only during the configuration state.
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 71
MFR4200 FlexRay Communication Controller
3.2.3.3.2
Delay Compensation Channel A Register (DCAR)
FlexRay Protocol Related Parameter - pDelayCompensation[A] Address 0xD0 Reset undefined state 15 DCA15 rw* 14 DCA14 rw* 13 DCA13 rw* 12 DCA12 rw* 11 DCA11 rw* 10 DCA10 rw* 9 DCA9 rw* 8 DCA8 rw*
7 DCA7 rw*
6 DCA6 rw*
5 DCA5 rw*
4 DCA4 rw*
3 DCA3 rw*
2 DCA2 rw*
1 DCA1 rw*
0 DCA0 rw*
Figure 3-15. Delay Compensation Channel A Register
This register holds the value used to compensate for reception delays on channel A in microticks. The register can be written during the configuration state only. The value of this register must be within the range [0:127]. 3.2.3.3.3 Delay Compensation Channel B Register (DCBR)
FlexRay Protocol Related Parameter - pDelayCompensation[B] Address 0xD2 Reset undefined state 15 DCB15 rw* 14 DCB14 rw* 13 DCB13 rw* 12 DCB12 rw* 11 DCB11 rw* 10 DCB10 rw* 9 DCB9 rw* 8 DCB8 rw*
7 DCB7 rw*
6 DCB6 rw*
5 DCB5 rw*
4 DCB4 rw*
3 DCB3 rw*
2 DCB2 rw*
1 DCB1 rw*
0 DCB0 rw*
Figure 3-16. Delay Compensation Channel B Register
This register holds the value used to compensate for reception delays on channel B in microticks. The register can be written during the configuration state only. The value of this register must be within the range [0:127].
MFR4200 Data Sheet, Rev. 0 72 Freescale Semiconductor
Memory Map and Registers
3.2.3.3.4
Cluster Drift Damping Register (CDDR)
FlexRay Protocol Related Parameter - pClusterDriftDamping Address 0xDE Reset undefined state 15 CDD15 rw* 14 CDD14 rw* 13 CDD13 rw* 12 CDD12 rw* 11 CDD11 rw* 10 CDD10 rw* 9 CDD9 rw* 8 CDD8 rw*
7 CDD7 rw*
6 CDD6 rw*
5 CDD5 rw*
4 CDD4 rw*
3 CDD3 rw*
2 CDD2 rw*
1 CDD1 rw*
0 CDD0 rw*
Figure 3-17. Cluster Drift Damping Register
This register defines the value used, in clock synchronization, to minimize the accumulation of rounding errors. This register can be written in the configuration state only. The register value is given in microticks and must be within the range [1:15]. 3.2.3.3.5 Maximum Sync Frames Register (MSFR)
FlexRay Protocol Related Parameter - gSyncNodeMax Address 0xC2 Reset undefined state 15 MSF15 rw* 14 MSF14 rw* 13 MSF13 rw* 12 MSF12 rw* 11 MSF11 rw* 10 MSF10 rw* 9 MSF9 rw* 8 MSF8 rw*
7 MSF7 rw*
6 MSF6 rw*
5 MSF5 rw*
4 MSF4 rw*
3 MSF3 rw*
2 MSF2 rw*
1 MSF1 rw*
0 MSF0 rw*
Figure 3-18. Maximum Sync Frames Register
This register holds the maximum number of sync frames that can be transmitted on either channel in a network, including a node's own sync frame. The host may modify this register in the configuration state only. The value of this register must be within the range [2:15].
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 73
MFR4200 FlexRay Communication Controller
3.2.3.3.6
Nominal Macrotick Length Register (NMLR)
FlexRay Protocol Related Parameter - pMicroPerMacroNom Address 0xAC Reset undefined state 15 Reserved r 14 Reserved r 13 Reserved r 12 Reserved r 11 Reserved r 10 Reserved r 9 Reserved r 8 Reserved r
7 NML7 rw*
6 NML6 rw*
5 NML5 rw*
4 NML4 rw*
3 NML3 rw*
2 NML2 rw*
1 NML1 rw*
0 NML0 rw*
Figure 3-19. Nominal Macrotick Length Register
This register defines the integer number of microticks per nominal macrotick, according to Equation 3-1.
NMLR = int (cycle length in T / CLR) Eqn. 3-1
Writing this register is possible only in the configuration state. 3.2.3.3.7 Microticks Per Cycle Low Register (MPCLR)
Address 0xB4 Reset undefined state 15 MPCL15 rw* 14 MPCL14 rw* 13 MPCL13 rw* 12 MPCL12 rw* 11 MPCL11 rw* 10 MPCL10 rw* 9 MPCL9 rw* 8 MPCL8 rw*
7 MPCL7 rw*
6 MPCL6 rw*
5 MPCL5 rw*
4 MPCL4 rw*
3 MPCL3 rw*
2 MPCL2 rw*
1 MPCL1 rw*
0 MPCL0 rw*
Figure 3-20. Microticks Per Cycle Low Register
The MPCHR and MPCLR are described in the following section. The MPCLR can be written during the configuration state only.
MFR4200 Data Sheet, Rev. 0 74 Freescale Semiconductor
Memory Map and Registers
3.2.3.3.8
Microticks Per Cycle High Register (MPCHR)
Address 0xB6 Reset undefined state 15 Reserved r 14 Reserved r 13 Reserved r 12 Reserved r 11 Reserved r 10 Reserved r 9 Reserved r 8 Reserved r
7 MPCH7 rw*
6 MPCH6 rw*
5 MPCH5 rw*
4 MPCH4 rw*
3 MPCH3 rw*
2 MPCH2 rw*
1 MPCH1 rw*
0 MPCH0 rw*
Figure 3-21. Microticks Per Cycle High Register
The MPCHR and MPCLR define the number of microticks per cycle. Writing these registers is possible only in the configuration state. The relationship between registers MPCHR, MPCLR, and CLR is given by Equation 3-2.
MPCHR * 2^16 + MPCLR = (Cycle Length) - k * CLR Eqn. 3-2
Where: * Cycle Length = the length of a communication cycle in microticks * k = 1 [microtick/macrotick] 3.2.3.3.9 Static Slot Length Register (SSLR)
FlexRay Protocol Related Parameter - gdStaticSlot Address 0xB0 Reset undefined state 15 Reserved r 14 Reserved r 13 Reserved r 12 Reserved r 11 Reserved r 10 Reserved r 9 Reserved r 8 Reserved r
7 SSL7 rw*
6 SSL6 rw*
5 SSL5 rw*
4 SSL4 rw*
3 SSL3 rw*
2 SSL2 rw*
1 SSL1 rw*
0 SSL0 rw*
Figure 3-22. Static Slot Length Register
This register defines the number of macroticks per slot. Writing this register is possible only in the configuration state.
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 75
MFR4200 FlexRay Communication Controller
3.2.3.3.10
Number of Static Slots Register (NSSR)
FlexRay Protocol Related Parameter - gNumberOfStaticSlots Address 0x8E Reset 0x1 15 Reserved r 14 Reserved r 13 Reserved r 12 Reserved r 11 Reserved r 10 NSS10 rw* 9 NSS9 rw* 8 NSS8 rw*
7 NSS7 rw*
6 NSS6 rw*
5 NSS5 rw*
4 NSS4 rw*
3 NSS3 rw*
2 NSS2 rw*
1 NSS1 rw*
0 NSS0 rw*
Figure 3-23. Number of Static Slots Register
This register defines the number of static slots in a cycle. Writing this register is possible only during the configuration state. NOTE The range of possible values for the NSSR is from 0x2 to 0x3FF. This means that at least two static slots must be programmed. 3.2.3.3.11 Static Payload Length Register (SPLR)
FlexRay Protocol Related Parameter - gPayloadLengthStatic Address 0x90 Reset 0x0 15 Reserved r 14 Reserved r 13 Reserved r 12 Reserved r 11 Reserved r 10 Reserved r 9 Reserved r 8 Reserved r
7 Reserved r
6 SPL6 rw*
5 SPL5 rw*
4 SPL4 rw*
3 SPL3 rw*
2 SPL2 rw*
1 SPL1 rw*
0 SPL0 rw*
Figure 3-24. Static Payload Length Register
This register defines the maximum data length for static frames in words (1 word = 2 bytes). Writing this register is possible only during the configuration state.
MFR4200 Data Sheet, Rev. 0 76 Freescale Semiconductor
Memory Map and Registers
3.2.3.3.12
Minislot Length Register (MSLR)
FlexRay Protocol Related Parameter - gdMinislot Address 0xC6 Reset undefined state 15 Reserved r 14 Reserved r 13 Reserved r 12 Reserved r 11 Reserved r 10 Reserved r 9 Reserved r 8 Reserved r
7 Reserved r
6 MSL6 rw*
5 MSL5 rw*
4 MSL4 rw*
3 MSL3 rw*
2 MSL2 rw*
1 MSL1 rw*
0 MSL0 rw*
Figure 3-25. Minislot Length Register
This register defines the minislot length in macroticks. The register can be written during the configuration state only. The value of this register must be within the range [2:63]. 3.2.3.3.13 Minislot Action Point Offset Register (MSAPOR)
FlexRay Protocol Related Parameter - gdMinislotActionPointOffset Address 0xC8 Reset undefined state 15 Reserved r 14 Reserved r 13 Reserved r 12 Reserved r 11 Reserved r 10 Reserved r 9 Reserved r 8 Reserved r
7 Reserved r
6 Reserved r
5 Reserved r
4 Reserved r
3 MSAPO3 rw*
2 MSAPO2 rw*
1 MSAPO1 rw*
0 MSAPO0 rw*
Figure 3-26. Minislot Action Point Offset Register
This register defines the offset of the action point within the minislot in macroticks. The register can be written during the configuration state only. The value of this register must be within the range [1:15].
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 77
MFR4200 FlexRay Communication Controller
3.2.3.3.14
Static Slot Action Point Offset Register (SSAPOR)
FlexRay Protocol Related Parameter - gdActionPointOffset Address 0xCA Reset undefined state 15 Reserved r 14 Reserved r 13 Reserved r 12 Reserved r 11 Reserved r 10 Reserved r 9 Reserved r 8 Reserved r
7 Reserved r
6 Reserved r
5 Reserved r
4 Reserved r
3 SSAPO3 rw*
2 SSAPO2 rw*
1 SSAPO1 rw*
0 SSAPO0 rw*
Figure 3-27. Static Slot Action Point Offset Register
This register defines the offset of the action point in macroticks. The register can be written only during the configuration state. The value of this register must be within the range [1:15]. 3.2.3.3.15 Latest Dynamic Transmission Start Register (LDTSR)
FlexRay Protocol Related Parameter - pLatestTx Address 0xC4 Reset undefined state 15 Reserved r 14 Reserved r 13 LDT13 rw* 12 LDT12 rw* 11 LDT11 rw* 10 LDT10 rw* 9 LDT9 rw* 8 LDT8 rw*
7 LDT7 rw*
6 LDT6 rw*
5 LDT5 rw*
4 LDT4 rw*
3 LDT3 rw*
2 LDT2 rw*
1 LDT1 rw*
0 LDT0 rw*
Figure 3-28. Latest Dynamic Transmission Start Register
This register defines the cycle time after which dynamic frame transmission can start. If the cycle time is greater than this register's value, the controller continues an ongoing dynamic frame transmission (started before this point in time) and does not start any new dynamic frame transmissions. The latest dynamic transmission start is expressed in macroticks. The register can be written only in the configuration state.
MFR4200 Data Sheet, Rev. 0 78 Freescale Semiconductor
Memory Map and Registers
3.2.3.3.16
Maximum Payload Length Dynamic Register (MPLDR)
FlexRay Protocol Related Parameter - gMaxPayloadLengthDynamic Address 0x92 Reset 0x0 15 Reserved r 14 Reserved r 13 Reserved r 12 Reserved r 11 Reserved r 10 Reserved r 9 Reserved r 8 Reserved r
7 Reserved r
6 MPLD6* rw*
5 MPLD5* rw*
4 MPLD4* rw*
3 MPLD3* rw*
2 MPLD2* rw*
1 MPLD1* rw*
0 MPLD0* rw*
Figure 3-29. Maximum Payload Length Dynamic Register
This register defines the maximum payload length in the dynamic segment, in terms of words (1 word = 2 bytes). This register can be written only during the configuration state. NOTE The value of the maximum payload length dynamic register is used for checking transmit message buffers (see the MDPLE bit description in Section 3.2.3.6.3, "CHI Error Register (CHIER)" and Section 3.3.2.7, "LEN[6: 0] -- Payload Length"). 3.2.3.3.17 Symbol Window Configuration Register (SWCR)
FlexRay Protocol Related Parameter - gdSymbolWindow Address 0xBC Reset undefined state 15 Reserved r 14 Reserved r 13 SWC13 rw* 12 SWC12 rw* 11 SWC11 rw* 10 SWC10 rw* 9 SWC9 rw* 8 SWC8 rw*
7 SWC7 rw*
6 SWC6 rw*
5 SWC5 rw*
4 SWC4 rw*
3 SWC3 rw*
2 SWC2 rw*
1 SWC1 rw*
0 SWC0 rw*
Figure 3-30. Symbol Window Configuration Register
This register defines the cycle time in which the symbol window starts. The cycle time is measured in macroticks. This register may be modified only in the configuration state.
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 79
MFR4200 FlexRay Communication Controller
3.2.3.3.18
Network Idle Time Configuration Register (NITCR)
FlexRay Protocol Related Parameter - gdNIT Address 0xBE Reset undefined state 15 Reserved r 14 Reserved r 13 NITC13 rw* 12 NITC12 rw* 11 NITC11 rw* 10 NITC10 rw* 9 NITC9 rw* 8 NITC8 rw*
7 NITC7 rw*
6 NITC6 rw*
5 NITC5 rw*
4 NITC4 rw*
3 NITC3 rw*
2 NITC2 rw*
1 NITC1 rw*
0 NITC0 rw*
Figure 3-31. Network Idle Time Configuration Register
This register defines the cycle time in which the network idle time starts. The cycle time is measured in macroticks. The register may be modified in the configuration state only. This register is related to the SOCCTR register (refer to the note in Section 3.2.3.3.34, "Start of Offset Correction Cycle Time Register (SOCCTR)"). NOTE Since the duration of the NIT must be longer than or equal to
ceil ((1300T + 170T * MSFR)/NMLR) + 1 [nominal MT], Eqn. 3-3
this register must be configured to, at most
CLR - NIT duration [nominal MT] Eqn. 3-4
3.2.3.3.19
Cycle Length Register (CLR)
FlexRay Protocol Related Parameter - gMacroPerCycle Address 0xB2 Reset undefined state 15 Reserved r 14 Reserved r 13 CL13 rw* 12 CL12 rw* 11 CL11 rw* 10 CL10 rw* 9 CL9 rw* 8 CL8 rw*
7 CL7 rw*
6 CL6 rw*
5 CL5 rw*
4 CL4 rw*
3 CL3 rw*
2 CL2 rw*
1 CL1 rw*
0 CL0 rw*
Figure 3-32. Cycle Length Register
This register defines the number of macroticks per cycle. Writing this register is possible during the configuration state only. The CC uses this register value during startup only.
MFR4200 Data Sheet, Rev. 0 80 Freescale Semiconductor
Memory Map and Registers
3.2.3.3.20
Maximum Cycle Length Deviation Register (MCLDAR)
FlexRay protocol related parameter - gdMaxDrift Address 0xB8 Reset undefined state 15 Reserved r 14 Reserved r 13 Reserved r 12 Reserved r 11 Reserved r 10 Reserved r 9 MCLDA9 rw* 8 MCLDA8 rw*
7 MCLDA7 rw*
6 MCLDA6 rw*
5 MCLDA5 rw*
4 MCLDA4 rw*
3 MCLDA3 rw*
2 MCLDA2 rw*
1 MCLDA1 rw*
0 MCLDA0 rw*
Figure 3-33. Maximum Cycle Length Deviation Register
This register defines the number of microticks for a communication cycle of another CC with the maximum deviation of 1500 ppm with respect to the local oscillator. Writing this register is possible only during the configuration state. The value for the MCLDAR is calculated from Equation 3-5:
MCLDAR = ceil ( cycle_length[T] * 1.5*10-3 ) Eqn. 3-5
3.2.3.3.21
External Offset Correction Register (EOCR)
FlexRay Protocol Related Parameter - pExternOffsetCorrection Address 0xF4 Reset undefined state 15 EOC15 rw* 14 EOC14 rw* 13 EOC13 rw* 12 EOC12 rw* 11 EOC11 rw* 10 EOC10 rw* 9 EOC9 rw* 8 EOC8 rw*
7 EOC7 rw*
6 EOC6 rw*
5 EOC5 rw*
4 EOC4 rw*
3 EOC3 rw*
2 EOC2 rw*
1 EOC1 rw*
0 EOC0 rw*
Figure 3-34. External Offset Correction Register
This register holds the absolute value of the initial external offset correction to be applied, together with the internal clock synchronization value (see Section 3.2.3.3.23, "External Correction Control Register (ECCR)"). The host may write this register during the configuration state only. The register value is expressed in microticks.
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 81
MFR4200 FlexRay Communication Controller
3.2.3.3.22
External Rate Correction Register (ERCR)
FlexRay Protocol Related Parameter - pExternRateCorrection Address 0xF6 Reset undefined state 15 ECR15 rw* 14 ECR14 rw* 13 ECR13 rw* 12 ECR12 rw* 11 ECR11 rw* 10 ECR10 rw* 9 ECR9 rw* 8 ECR8 rw*
7 ERC7 rw*
6 ERC6 rw*
5 ERC5 rw*
4 ERC4 rw*
3 ERC3 rw*
2 ERC2 rw*
1 ERC1 rw*
0 ERC0 rw*
Figure 3-35. External Rate Correction Register
This register holds the absolute value of the initial external rate correction to be applied, together with the internal clock synchronization value (see Section 3.2.3.3.23, "External Correction Control Register (ECCR)"). The host may write this register in the configuration state only. The register value is expressed in microticks. 3.2.3.3.23 External Correction Control Register (ECCR)
Address 0xF8 Reset undefined state 15 Reserved r 14 Reserved r 13 Reserved r 12 Reserved r 11 Reserved r 10 Reserved r 9 Reserved r 8 Reserved r
7 Reserved r
6 Reserved r
5 Reserved r
4 Reserved r
3 ERCA rw
2 ERCE rwh
1 EOCA rw
0 EOCE rwh
Figure 3-36. External Correction Control Register
NOTE This register must be set before the NIT start of communication cycle x, in order to affect the clock correction in the communication cycle x+1.
EOCE -- External Offset Correction Enable
0 - External offset correction disabled. 1 - External offset correction enabled.
MFR4200 Data Sheet, Rev. 0 82 Freescale Semiconductor
Memory Map and Registers
NOTE If this bit is set by the host, external offset correction will be performed once during the subsequent double cycle; afterwards, this bit will be cleared automatically by the communication controller.
EOCA -- External Offset Correction Application
0 - Add external offset correction value. 1 - Subtract external offset correction value.
ERCE -- External Rate Correction Enable
0 - External rate correction disabled. 1 - External rate correction enabled. NOTE If this bit is set by the host, the external rate correction will be performed once during the subsequent double cycle, and afterwards this bit will be automatically cleared by the communication controller.
ERCA -- External Rate Correction Application
0 - Add external rate correction. 1 - Subtract external rate correction. 3.2.3.3.24 Maximum Offset Correction Register (MOCR)
FlexRay Protocol Related Parameter - pOffsetCorrectionOut Address 0xDA Reset undefined state 15 MOC15 rw* 14 MOC14 rw* 13 MOC13 rw* 12 MOC12 rw* 11 MOC11 rw* 10 MOC10 rw* 9 MOC9 rw* 8 MOC8 rw*
7 MOC7 rw*
6 MOC6 rw*
5 MOC5 rw*
4 MOC4 rw*
3 MOC3 rw*
2 MOC2 rw*
1 MOC1 rw*
0 MOC0 rw*
Figure 3-37. Maximum Offset Correction Register
This register defines the maximum permitted absolute offset correction value, in microticks, to be applied by the internal clock synchronization algorithms. This register can be written during the configuration state only. The value of this register does not effect the external clock correction value.
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 83
MFR4200 FlexRay Communication Controller
3.2.3.3.25
Maximum Rate Correction Register (MRCR)
FlexRay Protocol Related Parameter - pRateCorrectionOut Address 0xDC Reset undefined state 15 MRC15 rw* 14 MRC14 rw* 13 MRC13 rw* 12 MRC12 rw* 11 MRC11 rw* 10 MRC10 rw* 9 MRC9 rw* 8 MRC8 rw*
7 MRC7 rw*
6 MRC6 rw*
5 MRC5 rw*
4 MRC4 rw*
3 MRC3 rw*
2 MRC2 rw*
1 MRC1 rw*
0 MRC0 rw*
Figure 3-38. Maximum Rate Correction Register
This register defines the maximum permitted absolute rate correction value, in microticks, to be applied by the internal clock synchronization algorithms. This register can be written during the configuration state only. The value of this register does not effect the external clock correction value. 3.2.3.3.26 Coldstart Maximum Register (CSMR)
FlexRay Protocol Related Parameter - gColdStartAttempts Address 0xC0 Reset undefined state 15 CMS15 rw* 14 CMS14 rw* 13 CMS13 rw* 12 CMS12 rw* 11 CMS11 rw* 10 CMS10 rw* 9 CMS9 rw* 8 CMS8 rw*
7 CSM7 rw*
6 CSM6 rw*
5 CSM5 rw*
4 CSM4 rw*
3 CSM3 rw*
2 CSM2 rw*
1 CSM1 rw*
0 CSM0 rw*
Figure 3-39. Coldstart Maximum Register
The value in this register determines the maximum number of coldstart attempts that a coldstarting startup node is allowed to make, when trying to start up the network without receiving a valid response from another node. After this number of coldstart attempts, the CC falls back to the integration listen state and does not perform another coldstart attempt, until the controller enters and leaves the configuration state again. If the register is programmed with the value `0', then the CC is not allowed to start communication. Writing the coldstart maximum register is possible during the configuration state only. The value of this register must be within the range [0:32767].
MFR4200 Data Sheet, Rev. 0 84 Freescale Semiconductor
Memory Map and Registers
3.2.3.3.27
Transmit Start Sequence Length Register (TSSLR)
FlexRay Protocol Related Parameter - gdTSSTransmitter/pdTSSReceiver Address 0xBA Reset undefined state 15 TSSLR7 rw* 14 TSSLR6 rw* 13 TSSLR5 rw* 12 TSSLR4 rw* 11 TSSLR3 rw* 10 TSSLR2 rw* 9 TSSLR1 rw* 8 TSSLR0 rw*
7 TSSLT7 rw*
6 TSSLT6 rw*
5 TSSLT5 rw*
4 TSSLT4 rw*
3 TSSLT3 rw*
2 TSSLT2 rw*
1 TSSLT1 rw*
0 TSSLT0 rw*
Figure 3-40. Transmit Start Sequence Length Register
The TSSLR defines the length, in bits, of the transmit start sequence on the physical layer. Bits TSSLT[0:7] (LSB) define the nominal length of the transmit start sequence for transmission. Bits TSSLR[8:15] (MSB) define maximum length of the transmit start sequence for reception. Writing is possible only during the configuration state. 3.2.3.3.28 Network Management Vector Length Register (NMVLR)
FlexRay Protocol Related Parameter - gNetworkManagementVectorLength Address 0x3E Reset 0x0 15 Reserved r 14 Reserved r 13 Reserved r 12 Reserved r 11 Reserved r 10 Reserved r 9 Reserved r 8 Reserved r
7 Reserved r
6 Reserved r
5 Reserved r
4 Reserved r
3 NMVL3 rw*
2 NMVL2 rw*
1 NMVL1 rw*
0 NMVL0 rw*
Figure 3-41. Network Management Vector Length Register
This register defines the length, in bytes, of the network management vector (see Section 3.2.3.4.6, "Global Network Management Vector n Register, n = [0:5] (GNMVnR)"). Writing is possible during the configuration state only. The value of this register must be within the range [0:12].
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 85
MFR4200 FlexRay Communication Controller
3.2.3.3.29
Address 0x94 Reset 0x0 15 SUP rw*
Sync Frame Register (SYNCFR)
14 Reserved r
13 Reserved r
12 Reserved r
11 Reserved r
10 SYNCF10 rw*
9 SYNCF9 rw*
8 SYNCF8 rw*
7 SYNCF7 rw*
6 SYNCF6 rw*
5 SYNCF5 rw*
4 SYNCF4 rw*
3 SYNCF3 rw*
2 SYNCF2 rw*
1 SYNCF1 rw*
0 SYNCF0 rw*
Figure 3-42. Sync Frame Register
This register contains the identifier of the sync frame to be transmitted. This register can be written during the configuration state only. There is no sync frame to transmit, if this register holds the value 0x0. A hard reset clears the register.
SUP -- Startup
This bit sets the startup frame indicator. It can be written in the configuration state only. 1 - CC is a startup node and has its startup frame indicator set. 0 - CC is not a startup node. 3.2.3.3.30 Sync Frame Header Register (SYNCHR)
Address 0x96 Reset undefined state 15 Reserved r 14 Reserved r 13 Reserved r 12 Reserved r 11 Reserved r 10 SYNCRC10 rw* 9 SYNCRC9 rw* 8 SYNCRC8 rw*
7 SYNCRC7 rw*
6 SYNCRC6 rw*
5 SYNCRC5 rw*
4 SYNCRC4 rw*
3 SYNCRC3 rw*
2 SYNCRC2 rw*
1 SYNCRC1 rw*
0 SYNCRC0 rw*
Figure 3-43. Sync Frame Header Register
This register contains the header CRC of the sync frame to be transmitted. This register can be written during the configuration state only.
MFR4200 Data Sheet, Rev. 0 86 Freescale Semiconductor
Memory Map and Registers
NOTE The SYNCHR value overwrites the header CRC field of a transmit message buffer that: a) has the same frame ID as the SYNCF[0:10] field of the SYNCFR (see Section 3.2.3.3.29, "Sync Frame Register (SYNCFR)"), and b) was selected by the CC for transmission as a sync message. 3.2.3.3.31 Bus Guardian Tick Register (BGTR)
Address 0xAE Reset undefined state 15 Reserved r 14 Reserved r 13 Reserved r 12 Reserved r 11 Reserved r 10 Reserved r 9 Reserved r 8 Reserved r
7 Reserved r
6 Reserved r
5 Reserved r
4 BGT4 rw*
3 BGT3 rw*
2 BGT2 rw*
1 BGT1 rw*
0 BGT0 rw*
Figure 3-44. Bus Guardian Tick Register
This register defines the period length of the bus guardian tick to be provided by the CC to the bus guardian. The value BGT[0:4], is expressed in multiples of the CC microtick. Writing this register is possible only during the configuration state. The value of this register must be within the range [2:16]. 3.2.3.3.32
Address 0x3C Reset 0x0 15 DC15 rw* 14 DC14 rw* 13 DC13 rw* 12 DC12 rw* 11 DC11 rw* 10 DC10 rw* 9 DC9 rw* 8 DC8 rw*
Delay Counter Register (DCR)
7 DC7 rw*
6 DC6 rw*
5 DC5 rw*
4 DC4 rw*
3 DC3 rw*
2 DC2 rw*
1 DC1 rw*
0 DC0 rw*
Figure 3-45. Delay Counter Register
This register specifies the configurable part of the delay between the reset of the CONFIG bit (host writing MCR0.CONFIG) and the point in time when the controller actually leaves the configuration state (see Section 3.9.2, "Configuration State"). The delay is configurable in steps of eight microticks, i.e.
the configured value * 8 = delay in microticks Eqn. 3-6
The host may write this register only during the configuration state.
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 87
MFR4200 FlexRay Communication Controller
3.2.3.3.33
Address 0x38 Reset 0x0 15 Reserved r
Debug Port Control Register (DBPCR)
14 Reserved r
13 Reserved r
12 Reserved r
11 Reserved r
10 Reserved r
9 Reserved r
8 Reserved r
7 CNTRL7 rw
6 CNTRL6 rw
5 CNTRL5 rw
4 CNTRL4 rw
3 CNTRL3 rw
2 CNTRL2 rw
1 CNTRL1 rw
0 CNTRL0 rw
Figure 3-46. Debug Port Control Register
This register controls the output functions of the BGT and ARM_BG pins of the controller as described in Table 3-3. Bits CNTRL[7:4] determine the functionality of the port BGT pin. Bits CNTRL[3:0] determine the functionality of the port ARM_BG pin. Refer to 3.10, "Debug Port" for a detailed description of the debug functions. NOTE The output function controls of BGT and ARM_BG pins are independent of each other. Therefore, they may be set with equal or different values.
Table 3-3. Encoding of Debug Port Control Fields CNTRL[7:4] and CNTRL[3:0]
CNTRL[7:4], CNTRL[3:0] 0 1 2 3 4 5 6 7 8 9 10 11 12 Mode of the BGT, Mode of the ARM_BG Normal operation of BGT and ARM_BG Protocol state change Slot start in static segment Minislot start RxD after glitch filter on channel A Dynamic slot start on channel A Start of frame on channel A Received syntactically correct an semantically valid frame indication on channel A Start of a communication cycle Macrotick Start of offset correction - RxD after glitch filter on channel B Signal - PCS SSS MSS RAGFA DSSA SFA RCFA SCC MTS SOC - RAGFB
MFR4200 Data Sheet, Rev. 0 88 Freescale Semiconductor
Memory Map and Registers
Table 3-3. Encoding of Debug Port Control Fields CNTRL[7:4] and CNTRL[3:0] (continued)
CNTRL[7:4], CNTRL[3:0] 13 14 15 Mode of the BGT, Mode of the ARM_BG Dynamic slot start on channel B Start of frame on channel B Received syntactically correct an semantically valid frame indication on channel B Signal DSSB SFB RCFB
3.2.3.3.34
Start of Offset Correction Cycle Time Register (SOCCTR)
FlexRay Protocol Related Parameter - gOffsetCorrectionStart Address 0xE0 Reset undefined state 15 Reserved r 14 Reserved r 13 SOCCT13 rw* 12 SOCCT12 rw* 11 SOCCT11 rw* 10 SOCCT10 rw* 9 SOCCT9 rw* 8 SOCCT8 rw*
7 SOCCT7 rw*
6 SOCCT6 rw*
5 SOCCT5 rw*
4 SOCCT4 rw*
3 SOCCT3 rw*
2 SOCCT2 rw*
1 SOCCT1 rw*
0 SOCCT0 rw*
Figure 3-47. Start of Offset Correction Cycle Time Register
This register defines the delay time (in multiples of macroticks) after which the offset correction will start. Writing this register is possible only during the configuration state. NOTE The time interval between the start time of the NIT (see NITCR) and the Start of Offset Correction time is used by the CC for clock correction calculations. The minimum interval that must be ensured during NITCR and SOCCTR programming can be calculated from Equation 3-7:
Delaymin = ceil(500T + 110T*MSFR)/NMLR) + 1 [nominal MT] Eqn. 3-7
Therefore, the SOCCTR value must be:
SOCCTR >= NITCR + Delaymin [nominal MT] Eqn. 3-8
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 89
MFR4200 FlexRay Communication Controller
3.2.3.3.35
Idle Detection Length Register (IDLR)
FlexRay protocol related parameter - gdDynamicSlotIdlePhase Address 0xAA Reset undefined state 15 Reserved r 14 Reserved r 13 Reserved r 12 Reserved r 11 Reserved r 10 Reserved r 9 Reserved r 8 Reserved r
7 Reserved r
6 Reserved r
5 Reserved r
4 Reserved r
3 IDL3 rw*
2 IDL2 rw*
1 IDL1 rw*
0 IDL0 rw*
Figure 3-48. Idle Detection Length Register
This register defines the number of minislots used by the CC for checking the duration of the network idle time between two consecutive frames in the dynamic segment. This includes the dynamic slot idle phase. Writing this register is possible only during the configuration state. The value of IDLR depends on the values of the bit duration register (Section 3.2.3.3.1, "Bit Duration Register (BDR)) and the minislot length register (Section 3.2.3.3.12, "Minislot Length Register (MSLR)). It can be calculated using Equation 3-9.
IDLR = ceil( (11 * BDR) / (NMLR * MSLR) ). Eqn. 3-9
The value in the register must be in the range [1:15]. 3.2.3.3.36
Address 0x84 Reset 0x0 15 Reserved r 14 Reserved r 13 Reserved r 12 Reserved r 11 Reserved r 10 Reserved r 9 Reserved r 8 Reserved r
Symbol Window Control Register (SWCTRLR)
7 Reserved r
6 CHB rw
5 CHA rw
4 Reserved r
3 Reserved r
2 Reserved r
1 Reserved r
0 Reserved r
Figure 3-49. Symbol Window Control Register
This register controls the transmission of symbols in a symbol window of a communication cycle. The register may be modified during the configuration state and during normal operation. CHB and CHA determine whether a symbol will be transmitted on channel B or channel A, respectively. 1 - Symbol transmission enabled.
MFR4200 Data Sheet, Rev. 0 90 Freescale Semiconductor
Memory Map and Registers
0 - Symbol transmission disabled. 3.2.3.3.37
Address 0x8A Reset 0x0 15 Reserved r 14 Reserved r 13 Reserved r 12 Reserved r 11 Reserved r 10 Reserved r 9 Reserved r 8 Reserved r
Wakeup Mechanism Control Register (WMCTRLR)
7 Reserved r
6 CHB rw*
5 CHA rw*
4 CNT4 rw*
3 CNT3 rw*
2 CNT2 rw*
1 CNT1 rw*
0 CNT0 rw*
Figure 3-50. Wakeup Mechanism Control Register
This register controls the transmission of wakeup symbols. The register may be modified in the configuration state only. CHB and CHA determine whether a wakeup symbol will be transmitted on channel B or channel A, respectively. 1 - Wakeup symbol transmission enabled. 0 - Wakeup symbol transmission disabled. CNT[4:0] determine the number of wakeup symbols to be transmitted. The controller will transmit at least two wakeup symbols if wakeup symbol transmission is enabled. 3.2.3.3.38 Wakeup Symbol TX Idle Register (WUSTXIR)
FlexRay protocol related parameter - gdWakeupSymbolTxIdle Address 0xEA Reset 0x0 15 Reserved r 14 Reserved r 13 Reserved r 12 Reserved r 11 Reserved r 10 Reserved r 9 Reserved r 8 Reserved r
7 CNT7 rw*
6 CNT6 rw*
5 CNT5 rw*
4 CNT4 rw*
3 CNT3 rw*
2 CNT2 rw*
1 CNT1 rw*
0 CNT0 rw*
Figure 3-51. Wakeup Symbol TX Idle Register
This register controls the duration of the idle period of wakeup symbols. Bits CNT[7:0] determine the duration of the idle period in bit durations on the network. The register may be modified in the configuration state only.
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 91
MFR4200 FlexRay Communication Controller
3.2.3.3.39
Wakeup Symbol TX Low Register (WUSTXLR)
FlexRay protocol related parameter - gdWakeupSymbolTxLow Address 0xEC Reset 0x0 15 Reserved r 14 Reserved r 13 Reserved r 12 Reserved r 11 Reserved r 10 Reserved r 9 Reserved r 8 Reserved r
7 Reserved r
6 Reserved r
5 CNT5 rw*
4 CNT4 rw*
3 CNT3 rw*
2 CNT2 rw*
1 CNT1 rw*
0 CNT0 rw*
Figure 3-52. Wakeup Symbol TX Low Register
This register controls the duration of the low period of wakeup symbols. Bits CNT[5:0] determine the duration of the low period in bit durations on the network. The register may be modified only during the configuration state. 3.2.3.3.40 Listen Timeout With Noise Length Register (LNLR)
FlexRay protocol related parameter - gListenNoise Address 0xD6 Reset undefined state 15 Reserved r 14 Reserved r 13 Reserved r 12 Reserved r 11 Reserved r 10 Reserved r 9 Reserved r 8 Reserved r
7 Reserved r
6 Reserved r
5 Reserved r
4 CNT4 rw*
3 CNT3 rw*
2 CNT2 rw*
1 CNT1 rw*
0 CNT0 rw*
Figure 3-53. Listen Timeout With Noise Length Register
This register controls the duration of the listen timeout with noise. Bits CNT[4:0] determine the duration of the listen timeout as a number of communication cycles. The register may be modified in the configuration state only.
MFR4200 Data Sheet, Rev. 0 92 Freescale Semiconductor
Memory Map and Registers
3.2.3.4
3.2.3.4.1
Address 0x0C Reset 0x0 15 Reserved r
Status Registers
Protocol State Register (PSR)
14 Reserved r
13 Reserved r
12 Reserved r
11 Reserved r
10 Reserved r
9 Reserved r
8 Reserved r
7 Reserved r
6 Reserved r
5 Reserved r
4 PS4 rh
3 PS3 rh
2 PS2 rh
1 PS1 rh
0 PS0 rh
Figure 3-54. Protocol State Register
This register is used to indicate the internal state of the CC. This register is read-only for the host. A hard reset clears the register.
Table 3-4. CC State Coding
CC State Configuration Initialize Schedule Normal Active Operation Normal Passive Operation Integration Consistency Check Integration Listen Coldstart Listen Integration Coldstart Check Join Coldstart Coldstart Collision Resolution Coldstart Consistency Check Coldstart Gap Wakeup Code (Decimal) 0 1 2 3 4 5 21 22 23 24 25 26 11 Slot Status Monitoring available No No Yes Yes Yes No No Yes Yes No Yes No No
NOTE Refer to note 2 in Section 3.2.3.5.7, "Slot Status Counter n Register, n = [0:7] (SSCnR)" for information on the MFR4200 slot status monitoring mechanisms.
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 93
MFR4200 FlexRay Communication Controller
3.2.3.4.2
Current Cycle Counter Value Register (CCCVR)
FlexRay protocol related parameter - vCycle Address 0x0A Reset 0x0 15 Reserved r 14 Reserved r 13 Reserved r 12 Reserved r 11 Reserved r 10 Reserved r 9 Reserved r 8 Reserved r
7 Reserved r
6 Reserved r
5 CCCV5 rh
4 CCCV4 rh
3 CCCV3 rh
2 CCCV2 rh
1 CCCV1 rh
0 CCCV0 rh
Figure 3-55. Current Cycle Counter Value Register
This register provides the current cycle counter value (bits CCCV[4:0]). The register is cleared by a hard reset or when leaving the configuration state. If the maximum value is reached, the counter wraps around to zero and continues counting. The current cycle counter value is measured in communication cycles. 3.2.3.4.3 Current Macrotick Counter Value Register (CMCVR)
FlexRay protocol related parameter - vMacrotick Address 0x08 Reset 0x0 15 Reserved r 14 Reserved r 13 CMCV13 rh 12 CMCV12 rh 11 CMCV11 rh 10 CMCV10 rh 9 CMCV9 rh 8 CMCV8 rh
7 CMCV7 rh
6 CMCV6 rh
5 CMCV5 rh
4 CMCV4 rh
3 CMCV3 rh
2 CMCV2 rh
1 CMCV1 rh
0 CMCV0 rh
Figure 3-56. Current Macrotick Counter Value Register
This register indicates the current cycle time in macroticks (bits CMCV[13:0]. The register is cleared by a hard reset or when leaving the configuration state. The CC increments the register during the cycle, and clears it at the start of a new cycle.
MFR4200 Data Sheet, Rev. 0 94 Freescale Semiconductor
Memory Map and Registers
3.2.3.4.4
Offset Correction Value Register (OCVR)
FlexRay protocol related parameter - vOffsetCorrection Address 0x32C Reset undefined state 15 OCV15 rh 14 OCV14 rh 13 OCV13 rh 12 OCV12 rh 11 OCV11 rh 10 OCV10 rh 9 OCV9 rh 8 OCV8 rh
7 OCV7 rh
6 OCV6 rh
5 OCV5 rh
4 OCV4 rh
3 OCV3 rh
2 OCV2 rh
1 OCV1 rh
0 OCV0 rh
Figure 3-57. Offset Correction Value Register
This read-only register indicates the offset correction value, in microticks, calculated by the clock synchronization algorithm (before external offset correction and before value limitation), at the end of each communication cycle. Data in this register is presented in 2's complement form. The value in this register is valid after a communication cycle start and until its NIT start. The CC modifies OCVR during the NIT. 3.2.3.4.5 Rate Correction Value Register (RCVR)
FlexRay protocol related parameter - vRateCorrection Address 0x32A Reset undefined state 15 RCV15 rh 14 RCV14 rh 13 RCV13 rh 12 RCV12 rh 11 RCV11 rh 10 RCV10 rh 9 RCV9 rh 8 RCV8 rh
7 RCV7 rh
6 RCV6 rh
5 RCV5 rh
4 RCV4 rh
3 RCV3 rh
2 RCV2 rh
1 RCV1 rh
0 RCV0 rh
Figure 3-58. Rate Correction Value Register
This read-only register indicates the rate correction value, in microticks, calculated by the clock synchronization algorithm (before external rate correction and value limitation), at the end of each odd communication cycle. Data in this register is presented in 2's complement form.
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 95
MFR4200 FlexRay Communication Controller
3.2.3.4.6
Global Network Management Vector n Register, n = [0:5] (GNMVnR)
Address GNMV0R=0x40, GNMV1R=0x42, GNMV2R=0x44, GNMV3R=0x46, GNMV4R=0x48, GNMV5R=0x4A, Reset 0x0 15 GNMV15 rh 14 GNMV14 rh 13 GNMV13 rh 12 GNMV12 rh 11 GNMV11 rh 10 GNMV10 rh 9 GNMV9 rh 8 GNMV8 rh
7 GNMV7 rh
6 GNMV6 rh
5 GNMV5 rh
4 GNMV4 rh
3 GNMV3 rh
2 GNMV2 rh
1 GNMV1 rh
0 GNMV0 rh
Figure 3-59. Global Network Management Vector n Register, n = [0:5]
These read-only registers hold the global network management vector. The length of the network management vector is configured by means of the NMVLR register (see Section 3.2.3.3.28, "Network Management Vector Length Register (NMVLR)"). The GNMVnR registers are cleared during a hard reset. NOTE If the NMVLR register is programmed with a value less than 12, then the remaining bytes of the GNMVnR registers (which are not used for network management vector accumulating) will remain 0's. The global network management vector, as presented in the communication cycle x, is the OR-combination of all network management vectors received in the communication cycle x-1. The controller ensures that the value read from GNMV0R is consistent. The mapping between the receive message buffer payload bytes and the GNMVnR registers is shown in Table 3-5. (See also Section , "Receive, receive FIFO, and transmit message buffers are accessible to the host MCU only through the active receive, active transmit, and active receive FIFO buffers.".)
Table 3-5. Mapping between Receive Message Buffer Payload Bytes and GNMVnR Registers
GNMVnR GNMV0R Byte MSB LSB GNMV1R MSB LSB ... GNMV5R MSB LSB NMVector11 NMVector10 NMVectorn NMVector1 NMVector0 NMVector3 NMVector2
MFR4200 Data Sheet, Rev. 0 96 Freescale Semiconductor
Memory Map and Registers
3.2.3.4.7
Address 0x86 Reset 0x0 15 Reserved r
Symbol Window Status channel A Register (SWSAR)
14 Reserved r
13 Reserved r
12 Reserved r
11 Reserved r
10 Reserved r
9 SYMB rh
8 CH rh
7 VCE rh
6 SYNCF rh
5 NULLF rh
4 SUPF rh
3 SERR rh
2 CERR rh
1 BVIOL rh
0 TXCON rh
Figure 3-60. Symbol Window Status Channel A Register
This register holds the symbol window status for channel A. The symbol window status is the same as a regular slot status as described in Section 3.3.3, "Message Buffer Slot Status Vector", with the addition of the SYMB flag.
SYMB -- Symbol
This flag indicates the reception of a symbol in the symbol window. 0 - No symbol received. 1 - Symbol received.
TXCON -- TX Conflict
This flag indicates transmission conflicts, i.e. indicates that a reception is ongoing when the controller starts transmission. This bit indicates conflicts during transmission in a symbol window. 0 - No transmission conflict detected 1 - Transmission conflict detected Refer to Section 3.3.3, "Message Buffer Slot Status Vector" for a description of the other bits in this register.
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 97
MFR4200 FlexRay Communication Controller
3.2.3.4.8
Address 0x88 Reset 0x0 15 Reserved r
Symbol Window Status Channel B Register (SWSBR)
14 Reserved r
13 Reserved r
12 Reserved r
11 Reserved r
10 Reserved r
9 SYMB rh
8 CH rh
7 VCE rh
6 SYNCF rh
5 NULLF rh
4 SUPF rh
3 SERR rh
2 CERR rh
1 BVIOL rh
0 TXCON rh
Figure 3-61. Symbol Window Status Channel B Register
This register holds the symbol window status for channel B. The symbol window status is the same as a regular slot status as described in Section 3.3.3, "Message Buffer Slot Status Vector", with the addition of the SYMB flag.
SYMB -- Symbol
This flag indicates the reception of a symbol in the symbol window. 0 - No symbol received. 1 - Symbol received.
TXCON -- TX Conflict
This flag indicates transmission conflicts, i.e. indicates that a reception is ongoing when the controller starts transmission. This bit indicates conflicts during transmission in a symbol window. 0 - No transmission conflict detected 1 - Transmission conflict detected Refer to Section 3.3.3, "Message Buffer Slot Status Vector" for a description of the other bits in this register.
MFR4200 Data Sheet, Rev. 0 98 Freescale Semiconductor
Memory Map and Registers
3.2.3.4.9
Address 0x3A Reset 0x0 15 Reserved r
Bus Guardian Status Register (BGSR)
14 Reserved r
13 Reserved r
12 Reserved r
11 Reserved r
10 Reserved r
9 Reserved r
8 Reserved r
7 Reserved r
6 Reserved r
5 Reserved r
4 Reserved r
3 Reserved r
2 BGSME1 rh
1 BGSME0 rh
0 BGRR rh
Figure 3-62. Bus Guardian Status Register
This register holds the bus guardian status.
BGRR -- Bus Guardian Reset Request
Request to the host to reset the bus guardian. 1 - BG reset request. 0 - No BG reset request.
BGSME0 - Bus Guardian Schedule Monitoring Error Indication for channel A
Indication of a bus guardian schedule monitoring error on channel A. 1 - BGSM error on channel A. 0 - No BGSM error on channel A.
BGSME1 -- Bus Guardian Schedule Monitoring Error Indication for channel B
Indication of a bus guardian schedule monitoring error on channel B. 1 - BGSM error on channel B. 0 - No BGSM error on channel B. NOTE If at least one of the BGSME bits is set, the BGS bit is set in the ISR0 (see Section 3.2.3.6.6, "Interrupt Status Register 0 (ISR0)"), and an interrupt is generated if enabled (see Section 3.2.3.5.5, "Interrupt Enable Register 0 (IER0)").
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 99
MFR4200 FlexRay Communication Controller
3.2.3.5
3.2.3.5.1
Address 0x16 Reset 0x0 15 Reserved r
Interrupt and Error Signaling Related Control Registers
Startup Interrupt Enable Register (SIER)
14 Reserved r
13 Reserved r
12 Reserved r
11 Reserved r
10 Reserved r
9 Reserved r
8 Reserved r
7 Reserved r
6 Reserved r
5 Reserved r
4 Reserved r
3 CDSTPNSIE rw
2 CDSTPNIE rw
1 PLFIE rw
0 CDSTMIE rw
Figure 3-63. Startup Interrupt Enable Register
This register holds the interrupt enable flags related to the startup interrupt status register (see Section 3.2.3.6.7, "Startup Interrupt Status Register (SISR)"). The SIER register is cleared during a hard reset.
CDSTMIE -- Coldstart Max Interrupt Enable
1 - Coldstart max interrupt enabled. 0 - Coldstart max interrupt disabled.
PLFIE -- Plausibility Failed Interrupt Enable
1 - Plausibility failed interrupt enabled. 0 - Plausibility failed interrupt disabled.
CDSTPNIE -- Coldstart Path Normal Interrupt Enable
1 - Coldstart path normal interrupt enabled. 0 - Coldstart path normal interrupt disabled.
CDSTPNSIE -- Coldstart Path Noise Interrupt Enable
1 - Coldstart path noise interrupt enabled. 0 - Coldstart path noise interrupt disabled.
CDSTPNSIE -- Coldstart Path Noise Interrupt Enable
1 - Coldstart path noise interrupt enabled. 0 - Coldstart path noise interrupt disabled
MFR4200 Data Sheet, Rev. 0 100 Freescale Semiconductor
Memory Map and Registers
3.2.3.5.2
Maximum Odd Cycles Without Clock Correction Fatal Register (MOCWCFR)
FlexRay protocol related parameter - gMaxWithoutClockCorrectionFatal Address 0xCC Reset undefined state 15 MCWCF15 rw* 14 MCWCF14 rw* 13 MCWCF14 rw* 12 MCWCF14 rw* 11 MCWCF14 rw* 10 MCWCF14 rw* 9 MCWCF14 rw* 8 MCWCF14 rw*
7 MCWCF14 rw*
6 MCWCF14 rw*
5 MCWCF14 rw*
4 MCWCF4 rw*
3 MCWCF3 rw*
2 MCWCF2 rw*
1 MCWCF1 rw*
0 MCWCF0 rw*
Figure 3-64. Maximum Odd Cycles Without Clock Correction Fatal Register
This register holds the maximum number of odd communication cycles (double cycles) before a node enters the diagnosis stop state due to missing sync frame pairs (missing rate correction). The register can be written only in the configuration state. If the CCFCV register value equals the MOCWCFR register value, the CC will enter the `red' error state (see Section 3.2.3.6.5, "Error Handling Level Register (EHLR)"), and will signal this to the host by raising an interrupt. According to the protocol specification, the value of this register lies in the range [1:15]; however, the current implementation supports values in the range [1:32767]. 3.2.3.5.3 Maximum Odd Cycles Without clock Correction Passive Register (MOCWCPR)
FlexRay protocol related parameter - gMaxWithoutClockCorrectonPassive Address 0xD8 Reset undefined state 15 MCWCP15 rw* 14 MCWCP14 rw* 13 MCWCP13 rw* 12 MCWCP12 rw* 11 MCWCP11 rw* 10 MCWCP10 rw* 9 MCWCP9 rw* 8 MCWCP8 rw*
7 MCWCP7 rw*
6 MCWCP6 rw*
5 MCWCP5 rw*
4 MCWCP4 rw*
3 MCWCP3 rw*
2 MCWCP2 rw*
1 MCWCP1 rw*
0 MCWCP0 rw*
Figure 3-65. Maximum Odd Cycles Without Clock Correction Passive Register
This register holds the maximum number of odd communication cycles (double cycles) before a node enters the passive state due to missing sync frame pairs (missing rate correction). The register can be written only in the configuration state. If the CCFCR register value (see Section 3.2.3.6.4, "Clock Correction Failed Counter Register (CCFCR)") equals the MOCWCPR register value, the CC will enter the `yellow' error state (see Section 3.2.3.6.5, "Error Handling Level Register (EHLR)"), and will signal this to the host by raising an interrupt. According to the protocol specification,
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 101
MFR4200 FlexRay Communication Controller
the value of this register lies in the range [1:15]; however, the current implementation supports values in the range [1:32767]. 3.2.3.5.4 Channel Status Error Counter n Register, n = [0:1] (CSECnR)
Address 0x2C, 0x2E Reset 0x0 15 CNT15 rh 14 CNT14 rh 13 CNT13 rh 12 CNT12 rh 11 CNT11 rh 10 CNT10 rh 9 CNT9 rh 8 CNT8 rh
7 CNT7 rh
6 CNT6 rh
5 CNT5 rh
4 CNT4 rh
3 CNT3 rh
2 CNT2 rh
1 CNT1 rh
0 CNT0 rh
Figure 3-66. Channel Status Error Counter n Register, n = [0:1]
Channel status error counters CSEC0R and CSEC1R wrap around after they reach the maximum value. These registers are reset when leaving the configuration state. CSEC0R is assigned to channel A of the CC. CSEC1R is assigned to channel B of the CC. The controller generates a slot status vector for: * every static slot * dynamic slots during which the controller receives or transmits a frame * symbol window * network idle time on either channel The controller increments the corresponding channel status error counter once if any slot status error bit (bits 0-3 of the slot status vector) is set. Channel status error counters are independent of other slot status monitoring mechanisms, i.e. message buffers (Section 3.2.3.7, "Message Buffers and FIFO Configuration Related Registers"), slot status registers (Section 3.2.3.6.8, "Slot Status n Register with n = [0:7] (SSnR)"), and slot status counters (Section 3.2.3.5.7, "Slot Status Counter n Register, n = [0:7] (SSCnR)"). * NOTE To determine the number of errors that occurred during a certain period of time, the host must store intermediate values of the channel status error counters. If a frame exceeds a slot boundary, the controller increments the channel status error counter twice, because a slot boundary violation always affects two slots.
*
MFR4200 Data Sheet, Rev. 0 102 Freescale Semiconductor
Memory Map and Registers
*
Refer to Table 3-4 for slot status monitoring availability in different protocol states.
3.2.3.5.5
Address 0x14 Reset 0x0 15 FATALIE rw
Interrupt Enable Register 0 (IER0)
14 CCLRIE rw
13 MAXSYNCIE rw
12 EHLCIE rw
11 MRCEIE rw
10 SSINTIE rw
9 BGSIE rw
8 MOCEIE rw
7 TIF1IE rw
6 TIF0IE rw
5 CYCIE rw
4 RFOIE rw
3 RFNEIE rw
2 CHIERRIE rw
1 TXIE rw
0 RXIE rw
Figure 3-67. Interrupt Enable Register 0
Each bit in the IER0 register enables its corresponding interrupt in the ISR0 register (see Section 3.2.3.6.6, "Interrupt Status Register 0 (ISR0)"). Their meaning is as follows: 0 - The corresponding interrupt is disabled. 1 - The corresponding interrupt enabled. 3.2.3.5.6 Slot Status Selection n Register, n = [0:3] (SSSnR)
Address SSS0R=0x6C, SSS1R=0x6E, SSS2R=0x70, SSS3R=0x72 Reset 0x0 15 Reserved r 14 Reserved r 13 Reserved r 12 Reserved r 11 Reserved r 10 ID10 rw 9 ID9 rw 8 ID8 rw
7 ID7 rw
6 ID6 rw
5 ID5 rw
4 ID4 rw
3 ID3 rw
2 ID2 rw
1 ID1 rw
0 ID0 rw
Figure 3-68. Slot Status Selection n Register, n = [0:3]
This set of n registers selects the static slot IDs for which the status will be provided in the SSnR registers (see Section 3.2.3.6.8, "Slot Status n Register with n = [0:7] (SSnR)"). NOTE SSSnR cannot be used for dynamic slots or minislots.
ID[0:10] -- Slot Status Slot ID Selection
ID[0:10] select the ID of the slot to observe.
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 103
MFR4200 FlexRay Communication Controller
3.2.3.5.7
Slot Status Counter n Register, n = [0:7] (SSCnR)
Address SSC0R=0x4C, SSC1R=0x4E, SSC2R=0x50, SSC3R=0x52, SSC4R=0x54, SSC5R=0x56, SSC6R=0x58, SSC7R=0x5A Reset 0x0 15 CNT15 rh 14 CNT14 rh 13 CNT13 rh 12 CNT12 rh 11 CNT11 rh 10 CNT10 rh 9 CNT9 rh 8 CNT8 rh
7 CNT7 rh
6 CNT6 rh
5 CNT5 rh
4 CNT4 rh
3 CNT3 rh
2 CNT2 rh
1 CNT1 rh
0 CNT0 rh
Figure 3-69. Slot Status Counter n Register, n = [0:7]
Slot status counters may trigger interrupts via the SSCIR register (see Section 3.2.3.5.9, "Slot Status Counter Incrementation Register (SSCIR)"). These interrupts may be enabled via the SSCIMR register (see Section 3.2.3.5.10, "Slot Status Counter Interrupt Mask Register (SSCIMR)"). Refer to Table 3-4 for slot status monitoring availability in different protocol states. The controller increments the internal slot status counter whenever the slot status provided by the protocol engine fulfills the status condition specified in the corresponding slot status counter condition register SSCCnR. The internal slot status counter is not directly visible to the host. Depending on the value of bit MULTCYC of the corresponding register SSCCnR (see Section 3.2.3.5.8, "Slot Status Counter Condition n Register, n = [0:7] (SSCCnR)"), the controller either clears the internal slot status counter with every cycle start (MULTCYC = 0) or keeps on incrementing continuously (MULTCYC = 1). The host always gets the value of the internal slot status counter for the previous comunication cycle (MULTCYC = 0) or cycles (MULTCYC = 1), when accessing slot status counters SSCnR. Slot status counters do not wraparound. * NOTE 1 To clear slot status counter SSCnR, the host must reset bit MULTCYC in the corresponding slot status counter condition register SSCCnR. The controller will then reset the internal slot status counter at the beginning of the following cycle, and the host will get the accumulated value of the internal slot status counter at the end of the following cycle. The controller clears all internal slot status counters when leaving the configuration state. The controller clears an internal slot status counter at the beginning of every cycle, if bit MULTCYC is 0 in the corresponding slot status counter condition register.
* *
NOTE 2 The controller provides four independent slot status monitoring mechanisms:
MFR4200 Data Sheet, Rev. 0 104 Freescale Semiconductor
Memory Map and Registers
*
*
* *
*
Slot status registers SSnR configured via slot status selection registers SSSnR, as described in Section 3.2.3.6.8, "Slot Status n Register with n = [0:7] (SSnR)" and Section 3.2.3.5.6, "Slot Status Selection n Register, n = [0:3] (SSSnR)". Channel status error counters CSEC0R and CSEC1R, as described in Section 3.2.3.5.4, "Channel Status Error Counter n Register, n = [0:1] (CSECnR)". Slot status information within message buffers, as described in Section 3.3.3, "Message Buffer Slot Status Vector". Slot status counter registers SSCnR configured via slot status counter condition registers SSCCnR as described in Section 3.2.3.5.7, "Slot Status Counter n Register, n = [0:7] (SSCnR)" and Section 3.2.3.5.8, "Slot Status Counter Condition n Register, n = [0:7] (SSCCnR)". Refer to Table 3-4 for slot status monitoring availability in different protocol states.
3.2.3.5.8
Slot Status Counter Condition n Register, n = [0:7] (SSCCnR)
Address SSCC0R=0x5C, SSCC1R=0x5E, SSCC2R=0x60, SSCC3R=0x62, SSCC4R=0x64, SSCC5R=0x66, SSCC6R=0x68, SSCC7R=0x6A Reset 0x0 15 Reserved r 14 Reserved r 13 Reserved r 12 Reserved r 11 Reserved r 10 CHCFG1 rw 9 CHCFG0 rw 8 MULTCYC rw
7 VCES rw
6 SYNCFS rw
5 NULLFS rw
4 SUPFS rw
3 SSCM3 rw
2 SSCM2 rw
1 SSCM1 rw
0 SSCM0 rw
Figure 3-70. Slot Status Counter Condition n Register, n = [0:7]
Each of these registers serves as condition to detect if the corresponding slot status counter (see Section 3.2.3.5.7, "Slot Status Counter n Register, n = [0:7] (SSCnR)") is to be incremented.
SSCMx, x = [0:3] -- Slot Status Mask
A binary AND operation is performed on this 4-bit vector and the status of each slot-channel tuple that is not booked for transmission in the static part of the communication cycle. If the result is 0, and conditions for null frame selection (NULLS), sync frame selection (SYNCS), startup frame selection (SUPFS), and valid communication element selection (VCES) are not met, the counter will not be incremented for that slot-channel tuple.
NULLFS -- NULL Frame Selection
This register is used to restrict counting to received null frames only.
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 105
MFR4200 FlexRay Communication Controller
0 - The slot status counter is incremented independently of the null frame indication bit. 1 - The slot status counter is incremented only when a syntactically correct null frame is received.
SYNCFS -- SYNC Frame Selection
This register can be used to restrict counting to received sync frames only. 0 - The slot status counter can be incremented independently of the sync frame bit. 1 - The slot status counter can be incremented only when a syntactically correct sync frame is received.
SUPFS -- StartUP Frame Selection
This register can be used to restrict counting to received startup frames only. 0 - The slot status counter can be incremented independently of the startup bit. 1 - The slot status counter can be incremented only when a syntactically correct startup frame is received.
VCES -- Valid Communication Element Selection
This register can be used to restrict counting to semantically valid frames only. 0 - The slot status counter can be incremented for semantically valid and invalid frames. 1 - The slot status counter can be incremented only when a semantically valid frame is received.
MULTCYC -- Multiple Cycle
This bit determines if the slot status counter reflects the values of multiple communication cycles or of the previous communication cycle only. Note that MULTCYC may be written during normal operation, but its value must not be modified by the host during the NIT. 0 - The internal slot status counter starts at 0 at the beginning of every communication cycle, and SSCnR reflects the values of the previous communication cycle. 1 - The internal slot status counter is not reset to 0 at the beginning of every communication cycle; this allows counting of specific slot status conditions over several communication cycles. SSCnR reflects the accumulated values counted in previous communication cycles.
CHCFG1, CHCFG0 -- Channel Configuration
These bits determine the channel assignment for slot status counters SSCnR, as defined in Table 3-6.
Table 3-6. Channel Configuration for SSCCnR
CHCFG1 0 0 CHCFG0 0 1 Count for channel A Count for channel B Meaning
MFR4200 Data Sheet, Rev. 0 106 Freescale Semiconductor
Memory Map and Registers
Table 3-6. Channel Configuration for SSCCnR
CHCFG1 1 1 CHCFG0 0 1 Meaning Count for both channels only once even if the counting condition is fulfilled for both channels Count for both channels independently. If the counting condition is fulfilled for both channels, count twice.
NOTE Slot status counting is supported for the static segment only. 3.2.3.5.9
Address 0x28 Reset 0x0 15 0 r 14 0 r 13 0 r 12 0 r 11 0 r 10 0 r 9 0 r 8 0 r
Slot Status Counter Incrementation Register (SSCIR)
7 SSCIR7 rwh
6 SSCIR6 rwh
5 SSCIR5 rwh
4 SSCIR4 rwh
3 SSCIR3 rwh
2 SSCIR2 rwh
1 SSCIR1 rwh
0 SSCIR0 rwh
Figure 3-71. Slot Status Counter Incrementation Register
This register contains one bit, SSCIRn, for each slot status counter SSCnR (see Section 3.2.3.5.7, "Slot Status Counter n Register, n = [0:7] (SSCnR)"). Bit SSCIRn is set when the slot status counter SSCnR is incremented. The register is reset on leaving the configuration state. The host may clear individually each bit in register SSCIR by writing a `1' to it. 3.2.3.5.10
Address 0x2A Reset 0x0 15 Reserved r 14 Reserved r 13 Reserved r 12 Reserved r 11 Reserved r 10 Reserved r 9 Reserved r 8 Reserved r
Slot Status Counter Interrupt Mask Register (SSCIMR)
7 SSCIMR7 rw
6 SSCIMR6 rw
5 SSCIMR5 rw
4 SSCIMR4 rw
3 SSCIMR3 rw
2 SSCIMR2 rw
1 SSCIMR1 rw
0 SSCIMR0 rw
Figure 3-72. Slot Status Counter Interrupt Mask Register
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 107
MFR4200 FlexRay Communication Controller
Via this register, the host may enable individually each bit in the SSCIR (see Section 3.2.3.5.9, "Slot Status Counter Incrementation Register (SSCIR)") to trigger the interrupt SSINT in the ISR0 (see Section 3.2.3.6.6, "Interrupt Status Register 0 (ISR0)". 1 - If the corresponding bit in register SSCIR is set, trigger the interrupt SSINT. 0 - Ignore the corresponding bit in register SSCIR; do not trigger an interrupt.
3.2.3.6
3.2.3.6.1
Address 0x24 Reset 0x0 15 Reserved r
Interrupt and Error Signaling Related Status Registers
Receive Buffer Interrupt Vector Register (RBIVECR)
14 Reserved r
13 Reserved r
12 Reserved r
11 Reserved r
10 Reserved r
9 Reserved r
8 Reserved r
7 Reserved r
6 Reserved r
5 RBIVEC5 rh
4 RBIVEC4 rh
3 RBIVEC3 rh
2 RBIVEC2 rh
1 RBIVEC1 rh
0 RBIVEC0 rh
Figure 3-73. Receive Buffer Interrupt Vector Register
This register indicates the lowest numbered receive message buffer that has its interrupt status flag (IFLG) and its interrupt enable (IENA) bits set. The register is cleared by a hard reset or by leaving the configuration state. * * * NOTE After an IFLG has been set or cleared, the CC updates the RBIVECR register after 1 T. The RBIVECR register contains valid data only if the RXIF bit is set (see Section 3.2.3.6.6, "Interrupt Status Register 0 (ISR0)"). If there are no IFLG bits set for any receive message buffers that have their IENA bit set, then the CC sets the RBIVECR register to 0x0000 (IFLG, IENA -- see Section 3.2.3.7.2, "Message Buffer Control, Configuration and Status n Register, n = [0:58] (BUFCSnR)").
MFR4200 Data Sheet, Rev. 0 108 Freescale Semiconductor
Memory Map and Registers
3.2.3.6.2
Address 0x26 Reset 0x0 15 Reserved r
Transmit Buffer Interrupt Vector Register (TBIVECR)
14 Reserved r
13 Reserved r
12 Reserved r
11 Reserved r
10 Reserved r
9 Reserved r
8 Reserved r
7 Reserved r
6 Reserved r
5 TBIVEC5 rh
4 TBIVEC4 rh
3 TBIVEC3 rh
2 TBIVEC2 rh
1 TBIVEC1 rh
0 TBIVEC0 rh
Figure 3-74. Transmit Buffer Interrupt Vector Register
This register indicates the lowest numbered transmit message buffer that has its interrupt status flag (IFLG) and its interrupt enable (IENA) bits set. A hard reset or leaving the configuration state clear the register. * * * NOTE After an IFLG has been set or cleared, the CC updates the TBIVECR register after 1 T. The TBIVECR register contains valid data only if the TXIF bit is set (see Section 3.2.3.6.6, "Interrupt Status Register 0 (ISR0)"). If there are no IFLG bits set for any transmit message buffers that have their IENA bit set, then the CC sets the TBIVECR register to 0x0000 (IFLG, IENA -- see Section 3.2.3.7.2, "Message Buffer Control, Configuration and Status n Register, n = [0:58] (BUFCSnR)").
3.2.3.6.3
Address 0x12 Reset 0x0 15 ILLADR rwh
CHI Error Register (CHIER)
14 NMENF rwh
13 NMEFTS rwh
12 SPLME rwh
11 MDPLE rwh
10 BULE rwh
9 EFLE rwh
8 FBLE rwh
7 TBLE rwh
6 RBLE rwh
5 Reserved r
4 CCPBLE rwh
3 BB rwh
2 Reserved r
1 IRE rwh
0 FLE rwh
Figure 3-75. CHI Error Register
This register holds CHI status flags. The host clears any status bit in the CHIER by writing a '1' to it; writing a `0' does not change the bit state. The CC sets a status bit in the CHIER again, when it detects the condition for that bit. If the host and the CC try to write the CHIER register at the same time, the CC write
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 109
MFR4200 FlexRay Communication Controller
operation has the higher priority. If the host tries to clear a set error flag in the CHIER register, while the CC at the same time sets this bit, the error flag will remain set. A hard reset clears the register. NOTE When any error is processed by the CC, and indicated in the CHIER register, the CC raises an interrupt, if configured to do so by means of the ISR0 and IER0 bits, and continues operation without changing state.
FLE -- Frame Lost Error
This error occurs if the host has locked a receive message buffer, and two semantically valid frames for that buffer are received during this locked time. The first frame will be lost. 1 - Frame lost error detected. 0 - No frame lost error detected.
IRE -- Illegal Reconfiguration Error
This error appears if the host tries to reconfigure a dynamic transmit message buffer to a static one. The reconfiguration, in that case, is ignored by the CC. 1 - Illegal reconfiguration error detected. 0 - No illegal reconfiguration error detected.
BB -- Buffer Busy
This bit is set if the host tries to lock a message buffer that is locked by the CC for internal operations. The CC, in that case, does not grant access to the message buffer through the locking mechanism. 1 - Buffer busy detected. 0 - No buffer busy detected.
Buffer Locking Errors: CCPBLE -- CC Part Buffer of a Double Transmit Message Buffer Lock Error
This error is raised if the host tries to lock a CC part buffer of a double transmit message buffer. The CC, in that case, does not grant access to the CC part buffer of a double transmit message buffer through the locking mechanism. 1 - CCPBLE detected. 0 - No CCPBLE detected.
RBLE -- Receive Message Buffers Locking Error
This error appears if the host tries to lock more than 1 receive message buffer. The CC in that case does not grant access to the buffer through the locking mechanism. 1 - RBLE detected.
MFR4200 Data Sheet, Rev. 0 110 Freescale Semiconductor
Memory Map and Registers
0 - No RBLE detected.
TBLE -- Transmit Message Buffers Locking Error
This error appears if the host tries to lock more than one transmit message buffer. The CC, in that case, does not grant access to the buffer through the locking mechanism. 1 - TBLE detected. 0 - No TBLE detected.
FBLE -- FIFO Message Buffer Lock Error
This error appears if the host tries to lock a FIFO message buffer not through message buffer 0. The CC, in that case, does not grant access to the message buffer through the locking mechanism. 1 - FBLE detected. 0 - No FBLE detected.
EFLE -- Empty FIFO Lock Error
This error appears if the host tries to lock an empty FIFO. The CC, in that case, does not grant access to the FIFO through the locking mechanism. 1 - EFLE detected. 0 - No EFLE detected.
BULE -- Unlocked Message Buffer Lock Error
This error appears if the host tries to access an unlocked message buffer through any active message buffer. In that case, the host write operations to an active message buffer are ignored, and read operations return 0's. 1 - BULE detected. 0 - No BULE detected.
Other Error Indicators: MDPLE -- Maximum Dynamic Payload Length Exceeded Error
This error appears if the payload length written into a dynamic segment transmit message buffer PayloadLength field is greater than the maximum payload length dynamic configured in the maximum payload length dynamic register MPLDR (see Section 3.2.3.3.16, "Maximum Payload Length Dynamic Register (MPLDR)"). In that case, the wrong payload length is ignored. 1 - MDPLE detected. 0 - No MDPLE detected.
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 111
MFR4200 FlexRay Communication Controller
SPLME -- Static Payload Length Mismatch Error
This error appears if the payload length written into a static segment transmit message buffer is not equal to the static payload length configured within the static payload length register SPLR (see Section 3.2.3.3.11, "Static Payload Length Register (SPLR)"). In that case, the wrong payload length is ignored. 1 - SPLME detected. 0 - No SPLME detected.
NMEFTS -- Network Management Error Frame Too Short
This error appears if the payload length value of a received message is not big enough to hold the complete configured NM vector. However, the received part of the NM vector is used for the NM vector update (see Section 3.2.3.4.6, "Global Network Management Vector n Register, n = [0:5] (GNMVnR)"). 1 - NMEFTS detected. 0 - No NMEFTS detected.
NMENF -- Network Management Error Null Frame
This error appears if a received message with an NM bit set has a null frame bit set. In that case, the GNMVnR registers are not updated. 1 - NMENF detected. 0 - No NMENF detected.
ILLADR -- Illegal Address
This error appears if the host tries to perform a byte access (a write access, if the HCS12 interface is selected) or an unaligned word access. If the HCS12 interface is selected (see chapter Section 3.7, "Host Controller Interfaces"), and this error appears, the CC presents the data value 0x0000 to the host and indicates an IILADR error. NOTE The address space from 0x0400 to 0x1FFF in the MFR4200 memory map is reserved. Reading this address space results in data 0x0000, while writing does not change the memory. Reading or writing this address space will set the ILLADR bit. 1 - ILLADR detected. 0 - No ILLADR detected.
MFR4200 Data Sheet, Rev. 0 112 Freescale Semiconductor
Memory Map and Registers
3.2.3.6.4
Clock Correction Failed Counter Register (CCFCR)
FlexRay Protocol Related Parameter - vClockCorrectionFailed Address 0x326 Reset undefined state 15 Reserved r 14 Reserved r 13 Reserved r 12 Reserved r 11 Reserved r 10 Reserved r 9 Reserved r 8 Reserved r
7 Reserved r
6 Reserved r
5 Reserved r
4 Reserved r
3 OWCC3 rh
2 OWCC2 rh
1 OWCC1 rh
0 OWCC0 rh
Figure 3-76. Clock Correction Failed Counter Register
This register holds the clock correction failed counter. This counter is reset when a node enters normal active operation. It is incremented by one at the end of any odd communication cycle, when either the missing offset correction error or the missing rate correction error, or both, are active. The counter is reset to zero at the end of an odd communication cycle if neither the offset correction failed error nor the rate correction failed error is active. The counter is not incremented after it reaches the maximum odd communication cycles without clock correction programmed value (see Section 3.2.3.5.2, "Maximum Odd Cycles Without Clock Correction Fatal Register (MOCWCFR)"). The host has read-only access to this register. 3.2.3.6.5 Error Handling Level Register (EHLR)
Address 0x328 Reset undefined state 15 Reserved r 14 Reserved r 13 Reserved r 12 Reserved r 11 Reserved r 10 Reserved r 9 Reserved r 8 Reserved r
7 Reserved r
6 Reserved r
5 Reserved r
4 Reserved r
3 Reserved r
2 Reserved r
1 EHL1 rh
0 EHL0 rh
Figure 3-77. Error Handling Level Register
This register holds the current value of the error handling level. Error handling levels are defined in Table 3-7:
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 113
MFR4200 FlexRay Communication Controller
Table 3-7. Error Handling Level Coding
EHL1 0 0 1 1 EHL0 0 1 0 1 Error Handling Level Green level Yellow level Red level Not used CC state Normal Active Normal Passive Diagnosis Stop -
3.2.3.6.6
Address 0x0E Reset 0x0 15 FATAL rwh
Interrupt Status Register 0 (ISR0)
14 CCLR rwh
13 MAXSYNC rwh
12 EHLC rwh
11 MRCE rwh
10 SSINT rwh
9 BGS rwh
8 MOCE rwh
7 TIF1 rwh
6 TIF0 rwh
5 CYCIF rwh
4 RFOIF rwh
3 RFNEIF rwh
2 CHIERRIF rwh
1 TXIF rwh
0 RXIF rwh
Figure 3-78. Interrupt Status Register 0
This register indicates the occurrence of interrupt events. Together with IER0 (see Section 3.2.3.5.5, "Interrupt Enable Register 0 (IER0)"), it allows the module to operate in a polled or interrupt driven system. * * * NOTE The host clears any status bit in the ISR0 by writing a '1' to the bit. Writing a `0' does not change the bit state. The CC sets a status bit of the ISR0 again when it detects the condition for that bit. The host must resolve the conditions causing the RFNEIF, CHIERRIF, TXIF, and RXIF bits to be asserted, as these flags are updated automatically by the CC, depending on conditions related to these flags. If the host does not resolve the conditions that lead to these flags being asserted, the CC ignores the host's clear operation for these bits and the bits remain asserted. If the host and the CC try to write the ISR0 register at the same time, the CC operation has the higher priority.
*
Every flag has an associated interrupt enable flag in interrupt enable register 0. The ISR0 register is cleared by a hard reset or by leaving the configuration state.
MFR4200 Data Sheet, Rev. 0 114 Freescale Semiconductor
Memory Map and Registers
RXIF -- Receive Interrupt Flag
This bit is set when any of the enabled (IENAn = 1) receive message buffers or the receive FIFO has successfully received a frame. Sources of this interrupt are set IFLG bits (see Section 3.4.1, "Message Buffer Control, Configuration and Status Register") of the corresponding message buffers. If RXIE is set (see Section 3.2.3.5.5, "Interrupt Enable Register 0 (IER0)"), a receive interrupt remains pending while the RXIF flag is set. 1 - At least one receive message buffer is full. 0 - All receive message buffers are empty.
TXIF -- Transmit Interrupt Flag
This read-only bit is set when any of the enabled (IENAn = 1) transmit message buffers is empty (IFLG = 1). Sources of this interrupt are set IFLG bits (see Section 3.4.1, "Message Buffer Control, Configuration and Status Register") of the corresponding message buffers. If TXIE is set (see Section 3.2.3.5.5, "Interrupt Enable Register 0 (IER0)"), an interrupt remains pending while this flag is set. 1 - At least one transmit message buffer is empty. 0 - All transmit message buffers are full.
CHIERRIF -- CHI Error Interrupt Flag
This bit is set when a CHI error is detected. Sources of this interrupt are CHI errors in the CHIER register (see Section 3.2.3.6.3, "CHI Error Register (CHIER)"). If CHIERRIF is set, an interrupt remains pending while this flag is set. 1 - A CHI error was detected. 0 - No CHI error was detected.
RFNEIF -- Receive FIFO Not Empty Interrupt Flag
This bit is set when the receive FIFO is not empty. If enabled, a FIFO not empty interrupt remains pending while this flag is set. The flag will be cleared if the FIFO is empty and message buffer 0 is unlocked. The CC sets this flag when the FIFO is not empty. 1 - Receive FIFO is not empty. 0 - Receive FIFO is empty.
RFOIF -- Receive FIFO Overrun Interrupt Flag
This bit is set when a receive FIFO overrun occurs. If enabled, an interrupt remains pending while this flag is set. 1 - A receive FIFO overrun has been detected. 0 - No receive FIFO overrun has occurred.
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 115
MFR4200 FlexRay Communication Controller
CYCIF -- Cycle Start Interrupt Flag
This bit is set when a communication cycle starts. If enabled, an interrupt remains pending while this flag is set. 1 - A communication cycle started. 0 - No communication cycle started.
TIF0/TIF1 -- Timer Interrupt Flag 0/1
This bit is set when: * the result of the timer 0/1 interrupt calculation, based on the cycle base and repetition fields of the timer interrupt configuration register 0 (see Section 3.2.3.9.1, "Timer Interrupt Configuration Register 0 Cycle Set (TICR0CS)"), matches the current cycle counter value in the CCCV register (see Section 3.2.3.4.2, "Current Cycle Counter Value Register (CCCVR)"); * and the macrotick offset programmed in the timer interrupt configuration register 0 (see Section 3.2.3.9.1, "Timer Interrupt Configuration Register 0 Cycle Set (TICR0CS)") matches the current macrotick value from CMCVR (see Section 3.2.3.4.3, "Current Macrotick Counter Value Register (CMCVR)"). If enabled, an interrupt remains pending while this flag is set. 1 - Timer 0/1 has reached the limit. 0 - Timer 0/1 has not reached the limit. NOTE After a hard reset, timer interrupt configuration registers are cleared. The CC indicates timers interrupts (ISR0 = 0x00C0) immediately after the hard reset, as the protocol engine provides cycle time and cycle counter values equal to zero during the whole configuration state. No interrupt is indicated to the host, as the interrupt enable register IER0 is also 0 after a hard reset.
MOCE -- Missing Offset Correction error
This bit is set if an insufficient number of measurements is available for offset correction at the end of the communication cycle (even and odd). 1 - Insufficient number of measurements available for offset correction. 0 - Sufficient number of measurements available for offset correction
BGS -- Bus Guardian Status
This bit indicates bus guardian schedule monitoring errors on channel A and/or channel B. The host may read the bus guardian status register BGSR (see Section 3.2.3.4.9, "Bus Guardian Status Register (BGSR)") to determine on which channel the error occurred. The host may reset BGS by writing a `1'. 1 - Bus guardian schedule monitoring error. 0 - No bus guardian schedule monitoring error
MFR4200 Data Sheet, Rev. 0 116 Freescale Semiconductor
Memory Map and Registers
SSINT -- Slot Status Interrupt
This bit indicates that at least one slot status counter register SSCnR (see Section 3.2.3.5.7, "Slot Status Counter n Register, n = [0:7] (SSCnR)") that is enabled as an interrupt source via slot status counter interrupt mask register SSCIMR (see Section 3.2.3.5.10, "Slot Status Counter Interrupt Mask Register (SSCIMR)") has been incremented. 1 - At least one slot status counter that is enabled as an interrupt source has been incremented. 0 - No slot status counter that is enabled as an interrupt source has been incremented.
MRCE -- Missing Rate Correction error
This bit is set if an insufficient number of measurement pairs is available for rate correction at the end of the odd communication cycle. 1 - Insufficient number of measurement pairs available for rate correction 0 - Sufficient number of measurement pairs available for rate correction
EHLC -- Error Handling Level Changed/ Startup Interrupt detected
This signal indicates, to the host, changes to the error handling level. 1 - Error handling level has changed. 0 - Error handling level has not changed.
MAXSYNC -- Max Sync Frames Detected
The controller sets this bit when more than the configured maximum number of sync frames (see Section 3.2.3.3.5, "Maximum Sync Frames Register (MSFR)") are detected within a single cycle. In this case, the controller is not able to capture all time difference measurements. 1 - More than the configured maximum number of sync frames have been received. 0 - Not more than the configured maximum number of sync frames have been received.
CCLR -- Clock Correction Limit Reached
This bit is set if offset or rate calculation reaches the threshold as configured in registers MOCR and MRCR (see Section 3.2.3.3.24, "Maximum Offset Correction Register (MOCR)" and Section 3.2.3.3.25, "Maximum Rate Correction Register (MRCR)"). 1 - Offset or rate calculation has reached the limit. 0 - Offset and rate correction are within the limit.
FATAL -- Fatal Error
This bit is set if an illegal condition is detected in the protocol state machine; this can be caused by illegal configuration. In this as, the controller goes into the diagnosis stop state immediately. 1 - Fatal error detected.
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 117
MFR4200 FlexRay Communication Controller
0 - No fatal error detected. 3.2.3.6.7
Address 0x10 Reset 0x0 15 Reserved r 14 Reserved r 13 Reserved r 12 Reserved r 11 Reserved r 10 Reserved r 9 Reserved r 8 Reserved r
Startup Interrupt Status Register (SISR)
7 Reserved r
6 Reserved r
5 Reserved r
4 Reserved r
3 CDSTPNSIF rwh
2 CDSTPNIF rwh
1 PLFIF rwh
0 CDSTMIF rwh
Figure 3-79. Startup Interrupt Status Register
This register holds the interrupt flags related to the startup procedure. All flags are read/write for the host. Each flag has an associated interrupt enable flag in the startup interrupt enable register (see Section 3.2.3.5.1, "Startup Interrupt Enable Register (SIER)"). The SISR register is cleared during a hard reset or when leaving the configuration state. The host clears a status bit in the SISR by writing a '1' to it. Writing a `0' does not change the bit state. The CC sets a status bit in the SISR again when it detects the condition for that bit. If the host and the CC try to access the SISR register at the same time, the CC operation has the higher priority.
CDSTMIF -- Coldstart Max Interrupt Flag
This error signal is set if the maximum number of allowed retries of a coldstarting CC (CSMR programmed value - see Section 3.2.3.3.26, "Coldstart Maximum Register (CSMR)") is reached. That is, if the CSMR register is programmed with the value N, the CC sets the CDSTMIF bit after the Nth retry has failed. If enabled, an interrupt remains pending while this flag is set. 1 - Coldstart Maximum value has been reached. 0 - Coldstart Maximum value has not been reached.
PLFIF -- Plausibility Failed Interrupt Flag
This error signal is set if the consistency check of the local CC within the startup sequence failed, i.e. the number of received valid startup frames is less than required. If enabled, an interrupt remains pending while this flag is set. 1 - A Plausibility Check of the local CC within the startup sequence failed. 0 - A Plausibility Check of the local CC within the startup sequence did not fail.
MFR4200 Data Sheet, Rev. 0 118 Freescale Semiconductor
Memory Map and Registers
CDSTPNSIF -- Coldstart Path Noise Interrupt Flag
This signal is set if the CC has entered startup via the coldstart noise path. This indicates that the CC tried to start the network. If enabled, an interrupt remains pending while this flag is set. 1 - The startup has been entered via the coldstart noise path. 0 - The startup has not been entered via the coldstart noise path.
CDSTPNIF -- Coldstart Path Normal Interrupt Flag
This signal is set if the CC has entered the startup via the normal coldstart path. This indicates that the CC tried to start the network. If enabled, an interrupt is pending while this flag is set. 1 - Startup has been entered via the normal coldstart path. 0 - Startup has not been entered via the normal coldstart path. 3.2.3.6.8 Slot Status n Register with n = [0:7] (SSnR)
Address SS0R=0x74, SS1R=0x76, SS2R=0x78, SS3R=0x7A, SS4R=0x7C, SS5R=0x7E, SS6R=0x80, SS7R=0x82 Reset 0x0 15 VCE_B rh 14 SYNCF_B rh 13 NULLF_B rh 12 SUPF_B rh 11 SERR_B rh 10 CERR_B rh 9 BVIOL_B rh 8 TXCON_B rh
7 VCE_A rh
6 SYNCF_A rh
5 NULLF_A rh
4 SUPF_A rh
3 SERR_A rh
2 CERR_A rh
1 BVIOL_A rh
0 TXCON_A rh
Figure 3-80. Slot Status n Register, n = [0:7]
Each of these registers holds the status of the slot specified in the corresponding slot status selection register SSSnR for both channel A and channel B. The suffices "_A" and "_B" indicate whether the slot status is valid for channel A or channel B, respectively. For a detailed description of the slot status flags, refer to Section 3.3.3, "Message Buffer Slot Status Vector". The controller provides a pair of slot status registers for each monitored slot with the first register being assigned to even communication cycles, and the second to odd communication cycles, as shown in Table 3-8. The controller clears the slot status registers SSnR (see Section 3.2.3.6.8, "Slot Status n Register with n = [0:7] (SSnR)") when leaving the configuration state. * * NOTE Refer to Table 3-4 for slot status monitoring availability in different protocol states. The slot status of slot n is updated within the first macrotick of slot n+1.
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 119
MFR4200 FlexRay Communication Controller
*
Empty slots exhibit the slot status 0x00 for both channels, because the slot status registers SSnR do not include the slot status channel bit.
Table 3-8. Mapping between SSSnR and SSnR
Even communication cycle Odd communication cycle Channel A (low byte) SS1R SS3R SS5R SS7R Channel B (high byte) SS1R SS3R SS5R SS7R
Slot Status Selection Register
Channel A (low byte) SS0R SS2R SS4R SS6R
Channel B (high byte) SS0R SS2R SS4R SS6R
SSS0R SSS1R SSS2R SSS3R
3.2.3.6.9
Odd Sync Frame ID n Register, n = [0:15] (OSFIDnR)
Address OSFID0R=0x3E0 ... OSFID15R=0x3FE Reset undefined state 15 Reserved r 14 Reserved r 13 Reserved r 12 Reserved r 11 Reserved r 10 ID10 rh 9 ID9 rh 8 ID8 rh
7 ID7 rh
6 ID6 rh
5 ID5 rh
4 ID4 rh
3 ID3 rh
2 ID2 rh
1 ID1 rh
0 ID0 rh
Figure 3-81. Odd Sync Frame ID n Register, n = [0:15]
These registers hold the frame IDs of all sync frames received in odd communication cycles and used for clock synchronization. The CC does not change the odd ID values from the end of the static part in the odd cycle to the beginning of the NIT in the even communication cycle. NOTE If a CC is configured to send sync frames (see Section 3.2.3.3.29, "Sync Frame Register (SYNCFR)"), the CC will store its sync frame ID in register OSFID0R.
MFR4200 Data Sheet, Rev. 0 120 Freescale Semiconductor
Memory Map and Registers
3.2.3.6.10
Even Sync Frame ID n Register, n = [0:15] (ESFIDnR)
Address EID0R=0x380 ... EID15R=0x39E Reset undefined state 15 Reserved r 14 Reserved r 13 Reserved r 12 Reserved r 11 Reserved r 10 ID10 rh 9 ID9 rh 8 ID8 rh
7 ID7 rh
6 ID6 rh
5 ID5 rh
4 ID4 rh
3 ID3 rh
2 ID2 rh
1 ID1 rh
0 ID0 rh
Figure 3-82. Even Sync Frame ID n Register, n = [0:15]
These registers hold the slot IDs of all sync frames received in even communication cycles and used for clock synchronization. The CC does not change the even ID values from the end of the static part in the even cycle to the beginning of the NIT in the odd communication cycle. NOTE If a CC is configured to send sync frames (see Section 3.2.3.3.29, "Sync Frame Register (SYNCFR)), each time the CC clears the EMCR or OMCR, it: * * * initializes the ESFID0R (or OSFID0R) with its sync frame ID, increments EMCR or OMCR, initializes EMA0R and EMB0R or OMA0R and EMB0R with the following value:
NMLR * SSAPOR - TSSLR * BDR - max(DCAR,DCBR) - 4 Eqn. 3-10
3.2.3.6.11
Odd Measurement Channel A n Register, n = [0:15] (OMAnR)
Address OMA0R=0x3A0 ... OMA15R=0x3BE Reset undefined state 15 OMA15 rh 14 OMA14 rh 13 OMA13 rh 12 OMA12 rh 11 OMA11 rh 10 OMA10 rh 9 OMA9 rh 8 OMA8 rh
7 OMA7 rh
6 OMA6 rh
5 OMA5 rh
4 OMA4 rh
3 OMA3 rh
2 OMA2 rh
1 OMA1 rh
0 OMA0 rh
Figure 3-83. Odd Measurement Channel A n Register, n = [0:15]
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 121
MFR4200 FlexRay Communication Controller
These registers hold the sync frame arrival time measured in microticks relative to the slot start boundary. Registers OMA0R to OMA15R contain all measurement values from channel A for the odd communication cycle. 3.2.3.6.12 Odd Measurement Channel B n Register, n = 0:15] (OMBnR)
Address OMB0R=0x3C0 ... OMB15R=0x3DE Reset undefined state 15 OMB15 rh 14 OMB14 rh 13 OMB13 rh 12 OMB12 rh 11 OMB11 rh 10 OMB10 rh 9 OMB9 rh 8 OMB8 rh
7 OMB7 rh
6 OMB6 rh
5 OMB5 rh
4 OMB4 rh
3 OMB3 rh
2 OMB2 rh
1 OMB1 rh
0 OMB0 rh
Figure 3-84. Odd Measurement Channel B n Register, n = [0:15]
These registers hold the sync frame arrival time measured in microticks relative to the slot start boundary. Registers OMB0R to OMB15R contain all measurement values from channel B for the odd communication cycle. 3.2.3.6.13 Even Measurement Channel A n Register, n = [0:15] (EMAnR)
Address EMA0R=0x340 ... EMA15R=0x35E Reset undefined state 15 EMA15 rh 14 EMA14 rh 13 EMA13 rh 12 EMA12 rh 11 EMA11 rh 10 EMA10 rh 9 EMA9 rh 8 EMA8 rh
7 EMA7 rh
6 EMA6 rh
5 EMA5 rh
4 EMA4 rh
3 EMA3 rh
2 EMA2 rh
1 EMA1 rh
0 EMA0 rh
Figure 3-85. Even Measurement Channel A n Register, n = [0:15]
These registers hold the sync frame arrival time measured in microticks relative to the slot start boundary. Registers EMA[0:15]R contain all measurement values from channel A for the even communication cycle.
MFR4200 Data Sheet, Rev. 0 122 Freescale Semiconductor
Memory Map and Registers
3.2.3.6.14
Even Measurement Channel B n Register, n = [0:15] (EMBnR)
Address EMB0R=0x360 ... EMB15R=0x37E Reset undefined state 15 EMB15 rh 14 EMB14 rh 13 EMB13 rh 12 EMB12 rh 11 EMB11 rh 10 EMB10 rh 9 EMB9 rh 8 EMB8 rh
7 EMB7 rh
6 EMB6 rh
5 EMB5 rh
4 EMB4 rh
3 EMB3 rh
2 EMB2 rh
1 EMB1 rh
0 EMB0 rh
Figure 3-86. Even Measurement Channel B n Register, n = [0:15]
These registers hold the sync frame arrival time measured in microticks relative to the slot start boundary. Registers EMB[0:15]R contain all measurement values from channel B for the even communication cycle. NOTE To get the time difference based on the expected time reference point, one must subtract the nominal action point offset in microticks, the frame start sequence length and the delay compensation according to the formula below:
Time difference = (EMAnR, EMBnR, OMAnR, or OMBnR) - NMLR * SSAPOR - TSSLR * BDR - max(DCAR,DCBR) - 4 Eqn. 3-11
As the transmission start sequence length is given in bits, it must be converted to T by multiplying it by the bit duration. As the channel information is not available for the list of sync frame arrival times, the CC standardizes the values based on the channel with the larger delay compensation value; thereby, the frame arrival time is always positive. A sync frame arrival time of 0 in one of the measurement registers denotes an invalid time difference. For example, if, in a given slot, only a sync frame on channel A has been received, the corresponding EMBnR will hold the value 0.
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 123
MFR4200 FlexRay Communication Controller
3.2.3.6.15
Even Measurement Counter Register (EMCR)
Address 0x33C Reset undefined state 15 Reserved r 14 Reserved r 13 Reserved r 12 Reserved r 11 Reserved r 10 Reserved r 9 Reserved r 8 Reserved r
7 Reserved r
6 Reserved r
5 Reserved r
4 Reserved r
3 EMC3 rh
2 EMC2 rh
1 EMC1 rh
0 EMC0 rh
Figure 3-87. Even Measurement Counter Register
The EMCR and OMCR are described in the following section. 3.2.3.6.16 Odd Measurement Counter Register (OMCR)
Address 0x33E Reset undefined state 15 Reserved r 14 Reserved r 13 Reserved r 12 Reserved r 11 Reserved r 10 Reserved r 9 Reserved r 8 Reserved r
7 Reserved r
6 Reserved r
5 Reserved r
4 Reserved r
3 OMC3 rh
2 OMC2 rh
1 OMC1 rh
0 OMC0 rh
Figure 3-88. Odd Measurement Counter Register
The EMCR and OMCR hold the number of valid sync frames received during the static segment of an even or odd cycle, respectively. If sync frame filtering is enabled, only sync frames that have passed the sync frame rejection and/or acceptance filters (see Section 3.2.3.8.3, "Sync Frame Rejection Filter Register (SYNFRFR)" and Section 3.2.3.8.1, "Sync Frame Acceptance Filter Value Register (SYNFAFVR)") are considered. The EMCR and OMCR registers hold the number of valid measurements in the measurement tables (see Section 3.2.3.6.9, "Odd Sync Frame ID n Register, n = [0:15] (OSFIDnR)" and Section 3.2.3.6.11, "Odd Measurement Channel A n Register, n = [0:15] (OMAnR)"). For example, if the value of EMCR is two, then two valid sync frames are available for clock sync calculations; the remaining fourteen values in the measurement table for the even cycle are invalid and may have undefined content. The EMCR and OMCR counters are incremented each time, when a valid sync frame has been received on at least one of the channels. EMCR and OMCR are reset when the CC enters the initialize schedule and coldstart collision resolution states. In the normal active state and the normal passive state, EMCR is reset in the NIT of the odd cycle, and OMCR is reset at the end of the even cycle. If the node is a non sync node, EMCR and OMCR are
MFR4200 Data Sheet, Rev. 0 124 Freescale Semiconductor
Memory Map and Registers
reset to zero. If the node is a sync node, EMCR and OMCR are reset to 1, as a sync node considers its own sync frames as zero values in the measurement tables.
3.2.3.7
3.2.3.7.1
Address 0x18 Reset 0x0 15 Reserved r
Message Buffers and FIFO Configuration Related Registers
FIFO Size Register (FSIZR)
14 Reserved r
13 Reserved r
12 Reserved r
11 Reserved r
10 Reserved r
9 Reserved r
8 Reserved r
7 Reserved r
6 Reserved r
5 FSIZ5 rw*
4 FSIZ4 rw*
3 FSIZ3 rw*
2 FSIZ2 rw*
1 FSIZ1 rw*
0 FSIZ0 rw*
Figure 3-89. FIFO Size Register
This register is used to configure the FIFO. The number of message buffers assigned to the receive FIFO, starting from message buffer 0, can be selected. Writing the FSIZR register is possible only during the configuration state.
Table 3-9. FIFO Size
FSIZ[5:0] 000000 000001 000010 000011 ... 111001 111010 others FIFO Size No FIFO is defined only message buffer 0 message buffer 0...message buffer 1 message buffer 0...message buffer 2 ... message buffer 0...message buffer 56 message buffer 0...message buffer 57 message buffer 0...message buffer 58
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 125
MFR4200 FlexRay Communication Controller
3.2.3.7.2
Message Buffer Control, Configuration and Status n Register, n = [0:58] (BUFCSnR)
Address BUFCS0R=0x200, BUFCS1R=0x204, ..., BUFCS57R=0x2E4, BUFCS58R=0x2E8. BUFCSnR=0x200 + 0x4*dec2hex(n) Reset IFLG, IENA, CFG and VALID bits are reset to 0, others - in undefined state 15 VALID * 14 TT * 13 CCFE * 12 BT * 11 DATUPD * 10 CHB * 9 CHA * 8 BUFCMT *
7 Reserved r
6 LOCK *
5 Reserved r
4 Reserved r
3 IENA *
2 IFLG *
1 Reserved r
0 CFG *
Figure 3-90. Message Buffer Control, Configuration and Status n Register, n = [0:58]
For a description of these registers and the bit access scheme, see Section 3.4.1, "Message Buffer Control, Configuration and Status Register". 3.2.3.7.3 Active Transmit Buffer Frame ID Register (ATBFRID)
Address 0x180 Reset undefined state 15 R* rw 14 PP rw* 13 NFI r 12 SYNC r 11 STARTUP r 10 ID10 rw* 9 ID9 rw* 8 ID8 rw*
7 ID7 rw*
6 ID6 rw*
5 ID5 rw*
4 ID4 rw*
3 ID3 rw*
2 ID2 rw*
1 ID1 rw*
0 ID0 rw*
Figure 3-91. Active Transmit Buffer Frame ID Register
For a description of this register and the bit access scheme, refer to Section 3.5, "Message Buffer Handling and Operations".
MFR4200 Data Sheet, Rev. 0 126 Freescale Semiconductor
Memory Map and Registers
3.2.3.7.4
Active Transmit Buffer Cycle Counter and Payload Length Register (ATBCCPLR)
Address 0x182 Reset undefined state 15 Reserved r 14 Reserved r 13 CYCL_CNT5 r* 12 CYCL_CNT4 r* 11 CYCL_CNT3 r* 10 CYCL_CNT2 r* 9 CYCL_CNT1 r* 8 CYCL_CNT0 r*
7 Reserved r
6 LEN6 rw*
5 LEN5 rw*
4 LEN4 rw*
3 LEN3 rw*
2 LEN2 rw*
1 LEN1 rw*
0 LEN0 rw*
Figure 3-92. Active Transmit Buffer Cycle Counter and Payload Length Register
NOTE The host may read the CYCL_CNT[5:0] bits but, as those bits are not updated by the CC, they will be in an undefined state. For a description of this register and the bit access scheme, refer to Section 3.5, "Message Buffer Handling and Operations". 3.2.3.7.5 Active Transmit Buffer Header CRC Register (ATBCRCR)
Address 0x184 Reset undefined state 15 Reserved r 14 Reserved r 13 Reserved r 12 Reserved r 11 Reserved r 10 HCRC10 rw* 9 HCRC9 rw* 8 HCRC8 rw*
7 HCRC7 rw*
6 HCRC6 rw*
5 HCRC5 rw*
4 HCRC4 rw*
3 HCRC3 rw*
2 HCRC2 rw*
1 HCRC1 rw*
0 HCRC0 rw*
Figure 3-93. Active Transmit Buffer Header CRC Register
For a description of this register and the bit access scheme, refer to Section 3.5, "Message Buffer Handling and Operations".
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 127
MFR4200 FlexRay Communication Controller
3.2.3.7.6
Active Transmit Buffer Data n Register, n = [0:15] (ATBDATAnR)
Address ATBDATA0R=0x186 ... ATBDATA15R=0x1A4 Reset undefined state 15 14 13 12 11 10 9 8 DATA(2n+1)8 rw
DATA(2n+1)15 DATA(2n+1)14 DATA(2n+1)13 DATA(2n+1)12 DATA(2n+1)11 DATA(2n+1)10 DATA(2n+1)9 rw rw rw rw rw rw rw
7 DATA(2n)7 rw
6 DATA(2n)6 rw
5 DATA(2n)5 rw
4 DATA(2n)4 rw
3 DATA(2n)3 rw
2 DATA(2n)2 rw
1 DATA(2n)1 rw
0 DATA(2n)0 rw
Figure 3-94. Active Transmit Buffer Data n Register, n = [0:15]
For a description of these registers, refer to Section 3.5, "Message Buffer Handling and Operations". 3.2.3.7.7 Active Transmit Buffer Message Buffer Slot Status Vector Register (ATBMBSSVR)
Address 0x1A6 Reset undefined state 15 Reserved r 14 Reserved r 13 Reserved r 12 Reserved r 11 Reserved r 10 Reserved r 9 Reserved r 8 CH r
7 VCE r
6 SYNCF r
5 NULLF r
4 SUPF r
3 SERR r
2 CERR r
1 BVIOL r
0 TXCON rh
Figure 3-95. Active Transmit Buffer Message Buffer Slot Status Vector Register
For a description of this register, refer to Section 3.5, "Message Buffer Handling and Operations".
MFR4200 Data Sheet, Rev. 0 128 Freescale Semiconductor
Memory Map and Registers
3.2.3.7.8
Active Receive Buffer Frame ID Register (ARBFRID)
Address 0x140 Reset undefined state 15 R* rh 14 PP rh 13 NFI rh 12 SYNC rh 11 STARTUP rh 10 ID10 rw* 9 ID9 rw* 8 ID8 rw*
7 ID7 rw*
6 ID6 rw*
5 ID5 rw*
4 ID4 rw*
3 ID3 rw*
2 ID2 rw*
1 ID1 rw*
0 ID0 rw*
Figure 3-96. Active Receive Buffer Frame ID Register
For a description of this register, refer to Section 3.5, "Message Buffer Handling and Operations". 3.2.3.7.9 Active Receive Buffer Cycle Counter and Payload Length Register (ARBCCPLR)
Address 0x142 Reset undefined state 15 Reserved r 14 Reserved r 13 CYCL_CNT5 rh 12 CYCL_CNT4 rh 11 CYCL_CNT3 rh 10 CYCL_CNT2 rh 9 CYCL_CNT1 rh 8 CYCL_CNT0 rh
7 Reserved r
6 LEN6 rh
5 LEN5 rh
4 LEN4 rh
3 LEN3 rh
2 LEN2 rh
1 LEN1 rh
0 LEN0 rh
Figure 3-97. Active Receive Buffer Cycle Counter and Payload Length Register
For a description of this register, refer to Section 3.5, "Message Buffer Handling and Operations".
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 129
MFR4200 FlexRay Communication Controller
3.2.3.7.10
Active Receive Buffer Header CRC Register (ARBCRCR)
Address 0x144 Reset undefined state 15 Reserved r 14 Reserved r 13 Reserved r 12 Reserved r 11 Reserved r 10 HCRC10 rh 9 HCRC9 rh 8 HCRC8 rh
7 HCRC7 rh
6 HCRC6 rh
5 HCRC5 rh
4 HCRC4 rh
3 HCRC3 rh
2 HCRC2 rh
1 HCRC1 rh
0 HCRC0 rh
Figure 3-98. Active Receive Buffer Header CRC Register
For a description of this register, refer to Section 3.5, "Message Buffer Handling and Operations". 3.2.3.7.11 Active Receive Buffer Data n Register, n = [0:15] (ARBDATAnR)
Address ARBDATA0R=0x146 ... ARBDATA15R=0x164 Reset undefined state 15 14 13 12 11 10 9 8 DATA(2n+1)8 rh
DATA(2n+1)15 DATA(2n+1)14 DATA(2n+1)13 DATA(2n+1)12 DATA(2n+1)11 DATA(2n+1)10 DATA(2n+1)9 rh rh rh rh rh rh rh
7 DATA(2n)7 rh
6 DATA(2n)6 rh
5 DATA(2n)5 rh
4 DATA(2n)4 rh
3 DATA(2n)3 rh
2 DATA(2n)2 rh
1 DATA(2n)1 rh
0 DATA(2n)0 rh
Figure 3-99. Active Receive Buffer Data n Register, n = [0:15]
For a description of these registers, refer to Section 3.5, "Message Buffer Handling and Operations".
MFR4200 Data Sheet, Rev. 0 130 Freescale Semiconductor
Memory Map and Registers
3.2.3.7.12
Active Receive Buffer Message Buffer Slot Status Vector Register (ARBMBSSVR)
Address 0x166 Reset undefined state 15 Reserved r 14 Reserved r 13 Reserved r 12 Reserved r 11 Reserved r 10 Reserved r 9 Reserved r 8 CH r
7 VCE rh
6 SYNCF rh
5 NULLF rh
4 SUPF rh
3 SERR rh
2 CERR rh
1 BVIOL rh
0 TXCON r
Figure 3-100. Active Receive Buffer Message Buffer Slot Status Vector Register
For a description of this register, refer to Section 3.5, "Message Buffer Handling and Operations". 3.2.3.7.13 Active FIFO Buffer Frame ID Register (AFBFRID)
Address 0x100 Reset undefined state 15 R* rh 14 PP rh 13 NFI rh 12 SYNC rh 11 STARTUP rh 10 ID10 rh 9 ID9 rh 8 ID8 rh
7 ID7 rh
6 ID6 rh
5 ID5 rh
4 ID4 rh
3 ID3 rh
2 ID2 rh
1 ID1 rh
0 ID0 rh
Figure 3-101. Active FIFO Buffer Frame ID Register
For a description of this register, refer to Section 3.5, "Message Buffer Handling and Operations".
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 131
MFR4200 FlexRay Communication Controller
3.2.3.7.14
Active FIFO Buffer Cycle Counter and Payload Length Register (AFBCCPLR)
Address 0x102 Reset undefined state 15 Reserved r 14 Reserved r 13 CYCL_CNT5 rh 12 CYCL_CNT4 rh 11 CYCL_CNT3 rh 10 CYCL_CNT2 rh 9 CYCL_CNT1 rh 8 CYCL_CNT0 rh
7 Reserved r
6 LEN6 rh
5 LEN5 rh
4 LEN4 rh
3 LEN3 rh
2 LEN2 rh
1 LEN1 rh
0 LEN0 rh
Figure 3-102. Active FIFO Buffer Cycle Counter and Payload Length Register
For a description of this register, refer to Section 3.5, "Message Buffer Handling and Operations". 3.2.3.7.15 Active FIFO Buffer Header CRC Register (AFBCRCR)
Address 0x104 Reset undefined state 15 Reserved r 14 Reserved r 13 Reserved r 12 Reserved r 11 Reserved r 10 HCRC10 rh 9 HCRC9 rh 8 HCRC8 rh
7 HCRC7 rh
6 HCRC6 rh
5 HCRC5 rh
4 HCRC4 rh
3 HCRC3 rh
2 HCRC2 rh
1 HCRC1 rh
0 HCRC0 rh
Figure 3-103. Active FIFO Buffer Header CRC Register
For a description of this register, refer to Section 3.5, "Message Buffer Handling and Operations".
MFR4200 Data Sheet, Rev. 0 132 Freescale Semiconductor
Memory Map and Registers
3.2.3.7.16
Active FIFO Buffer Data n Register, n = [0:15] (AFBDATAnR)
Address ARFBDATA0R=0x106 ... ARFBDATA15R=0x124 Reset undefined state 15 14 13 12 11 10 9 8 DATA(2n+1)8 rh
DATA(2n+1)15 DATA(2n+1)14 DATA(2n+1)13 DATA(2n+1)12 DATA(2n+1)11 DATA(2n+1)10 DATA(2n+1)9 rh rh rh rh rh rh rh
7 DATA(2n)7 rh
6 DATA(2n)6 rh
5 DATA(2n)5 rh
4 DATA(2n)4 rh
3 DATA(2n)3 rh
2 DATA(2n)2 rh
1 DATA(2n)1 rh
0 DATA(2n)0 rh
Figure 3-104. Active FIFO Buffer Data n Register, n = [0:15]
For a description of these registers, refer to Section 3.5, "Message Buffer Handling and Operations". 3.2.3.7.17 Active FIFO Buffer Message Buffer Slot Status Vector Register (AFBMBSSVR)
Address 0x126 Reset undefined state 15 Reserved r 14 Reserved r 13 Reserved r 12 Reserved r 11 Reserved r 10 Reserved r 9 Reserved r 8 CH r
7 VCE rh
6 SYNCF rh
5 NULLF rh
4 SUPF rh
3 SERR rh
2 CERR rh
1 BVIOL rh
0 TXCON r
Figure 3-105. Active FIFO Buffer Message Buffer Slot Status Vector Register
For a description of this register, refer to Section 3.5, "Message Buffer Handling and Operations".
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 133
MFR4200 FlexRay Communication Controller
3.2.3.8
3.2.3.8.1
Filtering Related Registers
Sync Frame Acceptance Filter Value Register (SYNFAFVR)
Address 0xF0 Reset undefined state 15 Reserved r 14 Reserved r 13 Reserved r 12 Reserved r 11 Reserved r 10 SYNFAFV10 rw* 9 SYNFAFV9 rw* 8 SYNFAFV8 rw*
7 SYNFAFV7 rw*
6 SYNFAFV6 rw*
5 SYNFAFV5 rw*
4 SYNFAFV4 rw*
3 SYNFAFV3 rw*
2 SYNFAFV2 rw*
1 SYNFAFV1 rw*
0 SYNFAFV0 rw*
Figure 3-106. Sync Frame Acceptance Filter Value Register
If ENSYNFF bit is set (see Section 3.2.3.2.1, "Module Configuration Register 0 (MCR0)"), every valid sync frame with the identifier ID must fulfill the following condition before its arrival time measurement values can be used for the clock synchronization. An identifier is accepted when:
( NOT((ID XOR SynFAFV) AND SynFAFM) AND NOT(ID == SynFRF) ) == TRUE Eqn. 3-12
This register may be written only in the configuration state. 3.2.3.8.2 Sync Frame Acceptance Filter Mask Register (SYNFAFMR)
Address 0xEE Reset undefined state 15 Reserved r 14 Reserved r 13 Reserved r 12 Reserved r 11 Reserved r 10 SYNFAFM10 rw* 9 SYNFAFM9 rw* 8 SYNFAFM8 rw*
7 SYNFAFM7 rw*
6 SYNFAFM6 rw*
5 SYNFAFM5 rw*
4 SYNFAFM4 rw*
3 SYNFAFM3 rw*
2 SYNFAFM2 rw*
1 SYNFAFM1 rw*
0 SYNFAFM0 rw*
Figure 3-107. Sync Frame Acceptance Filter Mask Register
SYNFAFM[10:0]
0 - This bit position is "don't care" for acceptance. 1 - This bit of the identifier must be identical to the corresponding bit in the acceptance value, for it to be accepted by the sync frame acceptance filter. This register may be written only in the configuration state.
MFR4200 Data Sheet, Rev. 0 134 Freescale Semiconductor
Memory Map and Registers
3.2.3.8.3
Sync Frame Rejection Filter Register (SYNFRFR)
Address 0xF2 Reset undefined state 15 Reserved r 14 Reserved r 13 Reserved r 12 Reserved r 11 Reserved r 10 SYNFRF10 rw 9 SYNFRF9 rw 8 SYNFRF8 rw
7 SYNFRF7 rw
6 SYNFRF6 rw
5 SYNFRF5 rw
4 SYNFRF4 rw
3 SYNFRF3 rw
2 SYNFRF2 rw
1 SYNFRF1 rw
0 SYNFRF0 rw
Figure 3-108. Sync Frame Rejection Filter Register
If the ENSYNFF bit is set (see Section 3.2.3.2.1, "Module Configuration Register 0 (MCR0)"), this register is used to identify a sync frame ID whose arrival time measurement values are to be rejected for clock synchronization. Note that this register can be written at any time by the host, unlike SYNFAFMR and SYNFAFVR (see Section 3.2.3.8.2, "Sync Frame Acceptance Filter Mask Register (SYNFAFMR)" and Section 3.2.3.8.1, "Sync Frame Acceptance Filter Value Register (SYNFAFVR)"). NOTE To ensure correct operation of the CC, the host should update this register only during the NIT. 3.2.3.8.4 Cycle Counter Filter n Register, n = [0:58] (CCFnR)
Address CCF0R=0x202, CCF1R=0x206, ..., CCF57R=0x2E6, CCF58R=0x2EA. CCFnR=0x202 + 0x4*dec2hex(n) Reset undefined state 15 Reserved r 14 Reserved r 13 CCM5 rw* 12 CCM4 rw* 11 CCM3 rw* 10 CCM2 rw* 9 CCM1 rw* 8 CCM0 rw*
7 Reserved r
6 Reserved r
5 CCV5 rw*
4 CCV4 rw*
3 CCV3 rw*
2 CCV2 rw*
1 CCV1 rw*
0 CCV0 rw*
Figure 3-109. Cycle Counter Filter n Register, n = [0:58]
Each cycle counter filter register is related to an appropriate message buffer: CCF0R to message buffer 0, CCF1R to message buffer 1, ... , CCF58R to message buffer 58. (For more information, refer to Section , "Receive, receive FIFO, and transmit message buffers are accessible to the host MCU only through the active receive, active transmit, and active receive FIFO buffers.").
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 135
MFR4200 FlexRay Communication Controller
CCV[0:5] -- Cycle Count Value n Bit[0:5]
These bits determine the cycle count value to be used for the cycle filtering.
CCM[0:5] -- Cycle Count Mask n Bit[0:5]
These bits define the mask used in the filtering process. 0 - This bit of the cycle counter is not used for filtering. 1 - This bit of the cycle counter is used for filtering. For a description of the read and write character of each bit-field, refer to Section 3.4.1, "Message Buffer Control, Configuration and Status Register" and Section 3.4.2, "Message Buffer Filter Registers". 3.2.3.8.5
Address 0x1C Reset 0x0 15 FMDAFV15 rw* 14 FMDAFV14 rw* 13 FMDAFV13 rw* 12 FMDAFV12 rw* 11 FMDAFV11 rw* 10 FMDAFV10 rw* 9 FMDAFV9 rw* 8 FMDAFV8 rw*
FIFO Acceptance Filter Message ID Value Register (FAFMIDVR)
7 FMDAFV7 rw*
6 FMDAFV6 rw*
5 FMDAFV5 rw*
4 FMDAFV4 rw*
3 FMDAFV3 rw*
2 FMDAFV2 rw*
1 FMDAFV1 rw*
0 FMDAFV0 rw*
Figure 3-110. FIFO Acceptance Filter Message ID Value Register
FMDAFV[0:15]
These bit-fields define the FIFO message ID filter value, for comparison with the message ID field of received frames. It defines the acceptable pattern value of the message ID to be received. These bits may be written only in the configuration state. 3.2.3.8.6
Address 0x1E Reset 0x0 15 FMDAFM15 rw* 14 FMDAFM14 rw* 13 FMDAFM13 rw* 12 FMDAFM12 rw* 11 FMDAFM11 rw* 10 FMDAFM10 rw* 9 FMDAFM9 rw* 8 FMDAFM8 rw*
FIFO Acceptance Filter Message ID Mask Register (FAFMIDMR)
7 FMDAFM7 rw*
6 FMDAFM6 rw*
5 FMDAFM5 rw*
4 FMDAFM4 rw*
3 FMDAFM3 rw*
2 FMDAFM2 rw*
1 FMDAFM1 rw*
0 FMDAFM0 rw*
Figure 3-111. FIFO Acceptance Filter Message ID Mask Register
MFR4200 Data Sheet, Rev. 0 136 Freescale Semiconductor
Memory Map and Registers
FMDAFM[0:15]
These bit-fields define the mask for the FIFO message ID filter. 0 - This bit in the message ID field of a received frame is not considered for acceptance filtering. 1 - This bit in the message ID field of a received frame is used for the acceptance filtering. These bits may be written only in the configuration state. 3.2.3.8.7
Address 0x1A Reset 0x0 15 Reserved r 14 Reserved r 13 Reserved r 12 Reserved r 11 Reserved r 10 Reserved r 9 Reserved r 8 Reserved r
FIFO Acceptance/Rejection Filter Channel Register (FAFCHR)
7 Reserved r
6 Reserved r
5 Reserved r
4 Reserved r
3 Reserved r
2 Reserved r
1 FCHBAFV rw*
0 FCHAAFV rw*
Figure 3-112. FIFO Acceptance/Rejection Filter Channel Register
FCHAAFV, FCHBAFV
These are FIFO channel filtering value bits. They define the channel from which the received frame will be accepted or rejected. These bits may be written only in the configuration state.
Table 3-10. FIFO Channel Filtering Configuration
FCHAAFV 1 1 0 0 FCHBAFV 1 0 1 0 Receive message buffer Store valid Rx frame Frame received on both channels are accepted or rejected Frame received on channel A is accepted or rejected Frame received on channel B is accepted or rejected Ignore frame
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 137
MFR4200 FlexRay Communication Controller
3.2.3.8.8
Address 0x20 Reset 0x0 15 Reserved r
FIFO Rejection Filter Frame ID Value Register (FRFFIDVR)
14 Reserved r
13 Reserved r
12 Reserved r
11 Reserved r
10 FFIDRFV10 rw*
9 FFIDRFV9 rw*
8 FFIDRFV8 rw*
7 FFIDRFV7 rw*
6 FFIDRFV6 rw*
5 FFIDRFV5 rw*
4 FFIDRFV4 rw*
3 FFIDRFV3 rw*
2 FFIDRFV2 rw*
1 FFIDRFV1 rw*
0 FFIDRFV0 rw*
Figure 3-113. FIFO Rejection Filter Frame ID Value Register
FFIDRFV[0:10]
This field contains the FIFO frame ID rejection filter value, for comparison with frame ID fields of received frames. It defines the acceptable pattern value of the frame ID to be rejected. These bits may be written only in the configuration state. 3.2.3.8.9
Address 0x22 Reset 0x0 15 Reserved r 14 Reserved r 13 Reserved r 12 Reserved r 11 Reserved r 10 FFIDRFM10 rw* 9 FFIDRFM9 rw* 8 FFIDRFM8 rw*
FIFO Rejection Filter Frame ID Mask Register (FRFFIDMR)
7 FFIDRFM7 rw*
6 FFIDRFM6 rw*
5 FFIDRFM5 rw*
4 FFIDRFM4 rw*
3 FFIDRFM3 rw*
2 FFIDRFM2 rw*
1 FFIDRFM1 rw*
0 FFIDRFM0 rw*
Figure 3-114. FIFO Rejection Filter Frame ID Mask Register
FFIDRFM[0:10]
These bit-fields indicate the mask for the FIFO Rejection frame ID filter. 0 - This bit of the internal slot ID (when a frame was received) is not considered for the rejection filtering. 1 - This bit of the internal slot ID (when a frame was received) is used for the rejection filtering. These bits may be written only in the configuration state.
MFR4200 Data Sheet, Rev. 0 138 Freescale Semiconductor
Memory Map and Registers
3.2.3.9
Timer Related Registers
The CC provides two timers with timer interrupt configuration registers for setting interrupts for specific points of global time. Each timer contains two parameters: 1. Cycle Set: A 9-bit register is used to specify in which set of communication cycles the interrupt will occur. It consists of two fields, the base cycle [b] and the cycle repetition [c]. The set of cycle numbers where the interrupt is to generated is determined from these two fields using the formula:
b + n*2^c (n = 0, 1, 2, ...) Eqn. 3-13
where: -- b is a 6-bit cycle number used to identify the initial value for generating the cycle set. -- c is a 3-bit value used to determine a constant repetition factor to be added to the base cycle (c = 0 ... 6) -- b must be smaller than 2^c:
b<2^c. Eqn. 3-14
2. Macrotick Offset: This 16-bit value is the macrotick offset from the beginning of the cycle in which the interrupt is to occur. The interrupt occurs at this offset for each cycle in the interrupt cycle set. 3.2.3.9.1
Address 0x30 Reset 0x0 15 Reserved r 14 Reserved r 13 Reserved r 12 Reserved r 11 Reserved r 10 CR2 rw 9 CR1 rw 8 CR0 rw
Timer Interrupt Configuration Register 0 Cycle Set (TICR0CS)
7 Reserved r
6 Reserved r
5 BCT5 rw
4 BCT4 rw
3 BCT3 rw
2 BCT2 rw
1 BCT1 rw
0 BCT0 rw
Figure 3-115. Timer Interrupt Configuration Register 0 Cycle Set
This register holds base cycle and cycle repetition values for timer 0. A hard reset clears the register.
BCT[0:5]
Base cycle value for timer 0.
CR[0:2]
Cycle repetition value for timer 0.
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 139
MFR4200 FlexRay Communication Controller
3.2.3.9.2
Address 0x32 Reset 0x0 15 MO15 rw
Timer Interrupt Configuration Register 0 Macrotick Offset (TICR0MO)
14 MO14 rw
13 MO13 rw
12 MO12 rw
11 MO11 rw
10 MO10 rw
9 MO9 rw
8 MO8 rw
7 MO7 rw
6 MO6 rw
5 MO5 rw
4 MO4 rw
3 MO3 rw
2 MO2 rw
1 MO1 rw
0 MO0 rw
Figure 3-116. Timer Interrupt Configuration Register 0 Macrotick Offset
This register holds the macrotick offset value for timer 0. A hard reset clears the register. 3.2.3.9.3
Address 0x34 Reset 0x0 15 Reserved r 14 Reserved r 13 Reserved r 12 Reserved r 11 Reserved r 10 CR2 rw 9 CR1 rw 8 CR0 rw
Timer Interrupt Configuration Register 1 Cycle Set (TICR1CS)
7 Reserved r
6 Reserved r
5 BCT5 rw
4 BCT4 rw
3 BCT3 rw
2 BCT2 rw
1 BCT1 rw
0 BCT0 rw
Figure 3-117. Timer Interrupt Configuration Register 1 Cycle Set
This register holds base cycle and cycle repetition values for timer 1. A hard reset clears the register.
BCT[0:5]
Base cycle value for timer 1.
CR[0:2]
Cycle repetition value for timer 1.
MFR4200 Data Sheet, Rev. 0 140 Freescale Semiconductor
Message Buffer
3.2.3.9.4
Address 0x36 Reset 0x0 15 MO15 rw
Timer Interrupt Configuration Register 1 Macrotick Offset (TICR1MO)
14 MO14 rw
13 MO13 rw
12 MO12 rw
11 MO11 rw
10 MO10 rw
9 MO9 rw
8 MO8 rw
7 MO7 rw
6 MO6 rw
5 MO5 rw
4 MO4 rw
3 MO3 rw
2 MO2 rw
1 MO1 rw
0 MO0 rw
Figure 3-118. Timer Interrupt Configuration Register 1 High
The timer interrupt configuration register 1 macrotick offset holds the macrotick offset value for timer 1. A hard reset clears the register.
3.3
Message Buffer
Receive, receive FIFO, and transmit message buffers are accessible to the host MCU only through the active receive, active transmit, and active receive FIFO buffers.
3.3.1
Message Buffer Layout
Table 3-11. Receive Message Buffer Layout
The layout shown in below, apply to transmit, receive buffer, and FIFO buffers.
15 0 1 2 3 4 5 6 7 8 9 ... 18 19 R*
RO
14 PP
RO
13 NFI
RO
12 SYNC
RO
11 START UP
RO
10
9
8
7
6
5
4
3
2
1
0
Frame ID (11 bits)
RO_NO/WR_CS
R NU R NU
Cycle Count (6 bits) RO
R NU
PayloadLength (7 bits) RO Header CRC (11 bits) RO Message ID0/Data0/NMVector0 RO Data2/NMVector2 RO Data4/NMVector4 RO Data6/NMVector6 RO Data8/NMVector8 RO Data10/NMVector10 RO Data12 RO ... RO Data30 RO
Message ID1/Data1/NMVector1 RO Data3/NMVector3 RO Data5/NMVector5 RO Data7/NMVector7 RO Data9/NMVector9 RO Data11/NMVector11 RO Data13 RO ... RO Data31 RO
Message Buffer Slot Status Vector RO
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 141
MFR4200 FlexRay Communication Controller
Table 3-12. Receive FIFO Message Buffer Layout
15 0 1 2 3 4 5 6 7 8 9 ... 18 19 R*
RO
14 PP
RO
13 NFI
RO
12 SYNC
RO
11 START UP
RO
10
9
8
7
6
5
RO
4
3
2
1
0
Frame ID (11 bits) R NU PayloadLength (7 bits) RO Header CRC (11 bits) RO Message ID0/Data0/NMVector0 RO Data2/NMVector2 RO Data4/NMVector4 RO Data6/NMVector6 RO Data8/NMVector8 RO Data10/NMVector10 RO Data12 RO ... RO Data30 RO Message Buffer Slot Status Vector RO
R NU R NU
Cycle Count (6 bits) RO
Message ID1/Data1/NMVector1RO Data3/NMVector3RO Data5/NMVector5 RO Data7/NMVector7 RO Data9/NMVector9 RO Data11/NMVector11 RO Data13 RO ... RO Data31 RO
Table 3-13. Transmit Message Buffer Layout
15 0 1 2 3 4 5 6 7 8 9 ... 18 19 R*
WR
14 PP
TX_CS_NO
13 NFI
NU
12 SYNC
NU
11
START UP
NU
10
9
8
7
6
5
4
3
2
1
0
Frame ID (11 bits)
TX_CS_NO
R NU R NU
Cycle Count (6 bits) NU
R NU
PayloadLength (7 bits) TX_CS_NO
Header CRC (11 bits) TX_CS_NO Message ID0/Data0/NMVector0 WR Data2/NMVector2 WR Data4/NMVector4 Data6/NMVector6 WR Data8/NMVector8 WR Data10/NMVector10 WR Data12 WR ... WR Data30 WR Message Buffer Slot Status Vector RO
Message ID1/Data1/NMVector1 WR Data3/NMVector3 WR Data5/NMVector5 WR Data7/NMVector7 WR Data9/NMVector9 WR Data11/NMVector11 WR Data13 WR ... WR Data31 WR
NOTE The host cannot access the CC part of a double transmit message buffer. CC raises a locking error if the host tries to lock the CC part of a double transmit message buffer.
MFR4200 Data Sheet, Rev. 0 142 Freescale Semiconductor
Message Buffer
Where:
RO_NO/WR_CS TX_CS_NO Host read access; host write access during the configuration state only Host read access; host write access: - during the configuration state for all transmit message buffers - during normal mode of operation for buffers configured for the dynamic segment of the communication cycle (read-only access for static segment buffers) Host read-only access Host read/write access Reserved or read-only bits not used by the CC during operation
RO WR NU
The size of the data field in the MFR4200 is limited to 32 bytes.
Table 3-14. Mapping between Buffer Layout and Active Receive/Transmit/FIFO Message Buffers
Message Buffer Layout R P N SYN STAR * P FI C T UP R Cycle Count (6 bits) R Message ID1/Data1/NMVector1 Data3/NMVector3 Data5/NMVector5 Data7/NMVector7 Data9/NMVector9 Data11/NMVector11 Data13 ... Data31 Message Buffer Slot Status Vector Active FIFO/Receive/Transmit Message Buffers Register Active FIFO/Receive/Transmit Buffer Frame ID Register
Frame ID (11 bits) PayloadLength (7 bits)
R
Active FIFO/Receive/Transmit Buffer Cycle Counter and Payload Length Register Active FIFO/Receive/Transmit Buffer Header CRC Register Active FIFO/Receive/Transmit Buffer Data 0 Register
Header CRC (11 bits) Message ID0/Data0/NMVector0 Data2/NMVector2 Data4/NMVector4 Data6/NMVector6 Data8/NMVector8 Data10/NMVector10 Data12 ... Data30
Active FIFO/Receive/Transmit Buffer Data 1 Register Active FIFO/Receive/Transmit Buffer Data 2 Register Active FIFO/Receive/Transmit Buffer Data 3 Register Active FIFO/Receive/Transmit Buffer Data 4 Register Active FIFO/Receive/Transmit Buffer Data 5 Register Active FIFO/Receive/Transmit Buffer Data 6 Register ... Active FIFO/Receive/Transmit Buffer Data 15 Register Active FIFO/Receive/Transmit Buffer Message Buffer Slot Status Vector Register
3.3.2
3.3.2.1
Message Buffer Field Descriptions
ID[10:0] -- Frame ID Field
Each transmit and receive message buffer and the FIFO buffer contains a frame ID field. This field is interpreted differently for receive message buffers, transmit message buffers, and the receive FIFO.
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 143
MFR4200 FlexRay Communication Controller
Receive message buffers:
The Frame ID field contains a frame ID filtering value. A received frame is stored in the first receive message buffer with a filter matching the received frame ID. The channel and cycle counter receive filtering criteria must also be met.
Transmit message buffers:
The frame ID field in the message buffer is used to determine the appropriate slot for frame transmission. The frame is transmitted in the time slot corresponding to the frame ID, provided the channel and cycle counter criteria are also met.
Receive FIFO message buffer:
The frame ID field in each element of the receive FIFO buffer stores a received frame ID value, if the frame is accepted by the FIFO acceptance filter and not rejected by the FIFO rejection filter and if there is no matching dedicated receive message buffer. For more information on FIFO filters, refer to Section 3.2.3.8, "Filtering Related Registers")
3.3.2.2
R* -- Reserved Bit
The reserved bit R* corresponds to the reserved bit in the header of the FlexRay frame. The controller transmits that bit within the frame header. This bit must be cleared by the host for PS V1.9/V2.0 compliant operation.
3.3.2.3
R -- Reserved Bits
These bits are reserved for future use and have no correlation with the R* bit.
3.3.2.4
PP -- Payload Preamble Bit
The payload preamble bit indicates that a static frame's payload data hold a network management vector, and that a dynamic frame's payload data hold a message ID, respectively.
3.3.2.5
NFI -- Null Frame Indication Bit
The null frame indication bit shows the value of the null frame indication flag for received frames stored in message receive/FIFO buffers. This bit has no function for transmit message buffers. The NULLF bit, described in Section 3.3.3, "Message Buffer Slot Status Vector", indicates the reception of a null frame on the physical layer. NOTE During the transition from the hard reset to the configuration state, the CC initializes the NFI bits of all buffers to `0'. In the normal passive and active states, the CC receives but does not store null frames. Therefore, after the first reception and storage of a valid receive frame's header and payload data to a receive message/FIFO buffer, the CC sets the NFI bit of that buffer. From that moment on, this bit remains set.
MFR4200 Data Sheet, Rev. 0 144 Freescale Semiconductor
Message Buffer
3.3.2.6
CYCLCNT[5:0] -- Cycle Counter
The cycle counter field holds the CC cycle counter value at frame reception time. This field is not used in message buffers configured for transmission.
3.3.2.7
LEN[6: 0] -- Payload Length
The payload length field holds the number of words (1 word = 2 bytes) contained in the payload segment of the frame.
Receive message buffers and receive FIFO:
The payload field indicates the value of the payload length field in the received frame (see Section 3.3.3, "Message Buffer Slot Status Vector).
Transmit message buffers:
The payload field indicates the number of words to be transmitted. If the host writes a payload length not equal to SPLR into a static frame, the CC generates the CHI error interrupt SPLME (see Section 3.2.3.6.3, "CHI Error Register (CHIER)"). If the host writes a payload length greater than MPLDR into a dynamic frame, the CC generates the CHI error interrupt MDPLE (see Section 3.2.3.6.3, "CHI Error Register (CHIER)"). Note that the size of the data field in the MFR4200 is limited to 32 bytes (see Section 3.1.1, "MFR4200 Features").
3.3.2.8
HCRC[10:0] -- Header CRC
The header CRC field contains a cyclic redundancy check code (CRC) computed over the sync bit, startup bit, the frame ID, and the payload length fields of the frame.
Receive message buffers and Receive FIFO:
The header CRC field contains the header CRC of the semantically valid and syntactically correct received frame.
Transmit message buffers:
The Header CRC field contains the Header CRC value calculated and provided by the host. Note that the controller does not check if the Header CRC provided by the host is correct.
3.3.2.9
SYNC -- Sync Bit
The SYNC bit determines whether the frame is to be used for clock synchronization.
Receive message buffers and Receive FIFO:
The bit contains the SYNC bit of the stored frame. This bit is updated only when a new semantically valid frame matching the buffer filters has been stored in the message buffer.
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 145
MFR4200 FlexRay Communication Controller
Transmit message buffers:
This bit is not used. NOTE The host sets up the slot ID determining the slot during which the CC transmits a sync frame via the sync frame register SYNCFR (see Section 3.2.3.3.29, "Sync Frame Register (SYNCFR)").
3.3.2.10
STARTUP -- Startup Bit
The STARTUP bit determines whether the frame is to be used for clock synchronization during startup.
Receive message buffers and Receive FIFO
The bit contains the STARTUP bit of the stored frame. This bit is updated only when a new semantically valid frame matching the buffer filters has been stored in the message buffer.
Transmit message buffers
This bit is not used. NOTE The host sets up the STARTUP bit for transmit frames via the startup bit SUP in register SYNCFR (see Section 3.2.3.3.29, "Sync Frame Register (SYNCFR)").
3.3.3
Message Buffer Slot Status Vector
All message buffers, including transmit buffers, comprise a message buffer slot status vector holding a 9-bit wide slot status information field.
15 Reserved r 14 Reserved r 13 Reserved r 12 Reserved r 11 Reserved r 10 Reserved r 9 Reserved r 8 CH r
7 VCE r
6 SYNCF r
5 NULLF r
4 SUPF r
3 SERR r
2 CERR r
1 BVIOL r
0 TXCON rh*
Figure 3-119. Transmit Message Buffer Slot Status Vector
MFR4200 Data Sheet, Rev. 0 146 Freescale Semiconductor
Message Buffer
15 Reserved r
14 Reserved r
13 Reserved r
12 Reserved r
11 Reserved r
10 Reserved r
9 Reserved r
8 CH rh*
7 VCE rh*
6 SYNCF rh*
5 NULLF rh*
4 SUPF rh*
3 SERR rh*
2 CERR rh*
1 BVIOL rh*
0 TXCON r
Figure 3-120. Receive and Receive FIFO Message Buffer Slot Status Vector
*
* *
* * * *
NOTE The CC indicates status information for transmit message buffers only, in the TXCON bit; the remaining bits are used to indicated receive status information. Therefore, if a message buffer is configured as a receive or receive FIFO message buffer, its TXCON bit is not used by the CC. If a message buffer is configured as a transmit message buffer, only its TXCON bit is updated by the CC, while the remaining bits are not used by the controller. Refer to Table 3-4 for slot status monitoring availability in different protocol states. After reception of a null frame or an invalid frame, the controller updates only the slot status vector of a selected receive message buffer or FIFO buffer. Other fields (see Table 3-11 and Table 3-12) of those buffers stay unaltered. After reception of a valid frame, the controller updates the slot status vector and the remainder of the receive message buffer or FIFO buffer. After transmission of a frame, the controller updates the slot status vector in the current transmit message buffer. The controller updates a message buffer assigned to slot n within the first macrotick of the slot n+1. Empty static slots exhibit slot status 0x0000 on channel A and 0x0100 on channel B.
3.3.3.1
TXCON -- TX Conflict
This flag indicates transmission conflicts, i.e. indicates that a reception is in progress when the controller starts transmission. This bit indicates conflicts during transmission in static and dynamic segments. 0 - No transmission conflict detected. 1 - Transmission conflict detected.
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 147
MFR4200 FlexRay Communication Controller
3.3.3.2
BVIOL -- Boundary Violation
This flag provides information about media activity at slot boundaries (either the end or the beginning of the current slot). Note that this is not necessarily an error condition, as a semantically valid frame can be received between the slot boundaries, provided that the idle conditions before and after the frame are fulfilled. 0 - No media activity detected at slot boundaries. 1 - Media activity detected at slot boundaries.
3.3.3.3
CERR -- Content Error
This flag indicates the reception of a semantically incorrect frame. 0 - No content error occurred in current slot. 1 - Content error occurred in current slot.
3.3.3.4
SERR -- Syntax Error
This flag indicates the reception of a syntactically incorrect frame. 0 - No syntax error occurred in current slot. 1 - Syntax error occurred in current slot.
3.3.3.5
SUPF -- Startup Frame Indication
This flag indicates the reception of a frame header having its startup bit set. 0 - No syntactically correct startup frame received in current slot. 1 - Syntactically correct startup frame received in current slot.
3.3.3.6
NULLF -- NULL Frame Indication
This flag indicates the reception of a frame header having its null frame indication bit set. 0 - No syntactically correct null frame received in current slot. 1 - Syntactically correct null frame received in current slot.
3.3.3.7
SYNCF -- SYNC Frame Indication
This flag indicates the reception of a frame header having its sync frame indication set. 0 - No syntactically correct sync frame received in current slot. 1 - Syntactically correct sync frame received in current slot.
MFR4200 Data Sheet, Rev. 0 148 Freescale Semiconductor
Message Buffer
3.3.3.8
VCE -- Valid Communication Element
This flag indicates the reception of a valid communication element. A valid communication element is either a syntactically and semantically correct frame or symbol. 0 - No valid communication element received in current slot. 1 - Valid frame received in current slot.
3.3.3.9
CH -- Channel
This flag indicates the channel the slot status refers to. 0 - Slot status of channel A. 1 - Slot status of channel B.
3.3.4
Message ID
If the payload preamble bit PP is set, the message ID field holds the message ID of a dynamic frame located in the message buffer. The FIFO filter may use the received message ID for message ID filtering.
3.3.5
NMVector Fields
If the payload preamble bit PP is set, the network management vector fields hold the network management vector of a static frame located in the message buffer.
3.3.6
Data[0:31] -- Data Fields
Receive message buffers:
The data fields store received frame payload data, if all the receive filtering criteria are met.
Transmit message buffers:
The host writes these data fields with payload data to be transmitted.
Receive FIFO:
The data fields in the FIFO buffer stores a received frame's payload data values if the channel, message ID, and cycle counter are accepted by the configured receive FIFO acceptance filter value and mask, and not rejected by the configured receive FIFO rejection filter value and mask, and if there is no matching dedicated receive message buffer in the mailbox.
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 149
MFR4200 FlexRay Communication Controller
3.4
3.4.1
Message Buffer Control, Configuration, Status and Filtering Register Set
Message Buffer Control, Configuration and Status Register
Message buffer control, configuration and status register (BUFCSnR[0:58]). The BUFCS[0:58] layout is the same for receive message buffers, transmit message buffers and FIFO. However, the access rules for register bits depend on various modes of operation and on the buffer configuration.
Bit Name Hard Reset Access 15 VALID
RO_NO/WR_CS
14 TT
NU
13 CCFE
RO_NO/WR_CS
12 BT
NU
11 DATUPD
RO_NO/WR_CS
10 ChB
RO_NO/WR_CS
9 ChA
RO_NO/WR_CS
8 BUFCMT
NU
0 rwh* r rw* r rwh* rw* rw* r
Bit Name Hard Reset Access
7 Reserved
NU
6 LOCK
WR
5 Reserved
NU
4 Reserved
NU
3 IENA
WR
2 IFLG
RO
1 Reserved
NU
0 CFG
RO_NO/WR_CS
0 r rw r r rw
0 rh r
0 rw*
Figure 3-121. BUFCSnR of a Receive Message Buffer
Bit Name Hard Reset Access 15 VALID
RO
14 TT
WR
13 CCFE
RO_NO/WR_CS
12 BT
RO_NO/WR_CS
11 DATUPD
NU
10 ChB
RO_NO/WR_CS
9 ChA
RO_NO/WR_CS
8 BUFCMT
WR
0 rh rw rw* rw* r rw* rw* rw
Bit Name Hard Reset Access
7 Reserved
NU
6 LOCK
WR
5 Reserved
NU
4 Reserved
NU
3 IENA
WR
2 IFLG
RO
1 Reserved
NU
0 CFG
RO_NO/WR_CS
0 r rw r r rw
0 rh r
0 rw*
Figure 3-122. BUFCSnR of a Transmit Message Single Buffer for the Dynamic Segment
MFR4200 Data Sheet, Rev. 0 150 Freescale Semiconductor
Message Buffer Control, Configuration, Status and Filtering Register Set
Bit Name Hard Reset Access
15 VALID
RO
14 TT
RO_NO/WR_CS
13 CCFE
RO_NO/WR_CS
12 BT
RO_NO/WR_CS
11 DATUPD
NU
10 ChB
RO_NO/WR_CS
9 ChA
RO_NO/WR_CS
8 BUFCMT
WR
0 rh rw* rw* rw* r rw* rw* rw
Bit Name Hard Reset Access
7 Reserved
NU
6 LOCK
WR
5 Reserved
NU
4 Reserved
NU
3 IENA
WR
2 IFLG
RO
1 Reserved
NU
0 CFG
RO_NO/WR_CS
0 r rw r r rw
0 rh r
0 rw*
Figure 3-123. BUFCSnR of a Host Part Transmit Message Buffer of a Double Tx Buffer for the Dynamic Segment
Bit Name Hard Reset Access 15 VALID
RO
14 TT
RO_NO/WR_CS
13 CCFE
RO_NO/WR_CS
12 BT
RO_NO/WR_CS
11 DATUPD
NU
10 ChB
RO_NO/WR_CS
9 ChA
RO_NO/WR_CS
8 BUFCMT
WR
0 rh rw* rw* rw* r rw* rw* rw
Bit Name Hard Reset Access
7 Reserved
NU
6 LOCK
WR
5 Reserved
NU
4 Reserved
NU
3 IENA
WR
2 IFLG
RO
1 Reserved
NU
0 CFG
RO_NO/WR_CS
0 r rw r r rw
0 rh r
0 rw*
Figure 3-124. BUFCSnR of a Host Part Transmit Message Buffer of a Double Tx Buffer for the Static Segment
Bit Name Hard Reset Access 15 VALID
RO
14 TT
RO_NO/WR_CS
13 CCFE
RO_NO/WR_CS
12 BT
RO_NO/WR_CS
11 DATUPD
NU
10 ChB
RO_NO/WR_CS
9 ChA
RO_NO/WR_CS
8 BUFCMT
WR
0 rh rw* rw* rw* r rw* rw* rw
Bit Name Hard Reset Access
7 Reserved
NU
6 LOCK
WR
5 Reserved
NU
4 Reserved
NU
3 IENA
WR
2 IFLG
RO
1 Reserved
NU
0 CFG
RO_NO/WR_CS
0 r rw r r rw
0 rh r
0 rw*
Figure 3-125. BUFCSnR of a Single Transmit Message Buffer for the Static Segment
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 151
MFR4200 FlexRay Communication Controller
Bit Name Hard Reset Access
15 VALID
RO
14 TT
RO
13 CCFE
RO
12 BT
RO
11 DATUPD
NU
10 ChB
RO
9 ChA
RO
8 BUFCMT
RO
0 rh r r r r r r r
Bit Name Hard Reset Access
7 Reserved
NU
6 LOCK
NU
5 Reserved
NU
4 Reserved
NU
3 IENA
RO
2 IFLG
RO
1 Reserved
NU
0 CFG
RO
0 r r r r r
0 rh r
0 r
Figure 3-126. BUFCSnR of a CC Part Transmit Message Buffer of a Double Tx Buffer for Dynamic and Static Segment
Bit Name Hard Reset Access 15 VALID
NU
14 TT
NU
13 CCFE
NU
12 BT
NU
11 DATUPD
NU
10 ChB
NU
9 ChA
NU
8 BUFCMT
NU
0 r r r r r r r r
Bit Name Hard Reset Access
7 Reserved
NU
6 LOCK
WR
5 Reserved
NU
4 Reserved
NU
3 IENA
NU
2 IFLG
NU
1 Reserved
NU
0 CFG
NU
0 r rwh r r r
0 r r
0 r
Figure 3-127. BUFCSnR of FIFO Buffer
Where:
RO_NO/WR_CS RO WR NU Host read/write access during the configuration state, in other states - Host read access; Host read-only access Host read/write access Reserved or not used
3.4.1.1
CFG -- Message Buffer Configuration Bit
This bit is used to configure the corresponding buffer as a transmit or receive message buffer. CFG bit is cleared by a hard reset. The access to this bit is defined in Table 3-16. 1 - The corresponding buffer is configured as a transmit message buffer. 0 - The corresponding buffer is configured as a receive message buffer.
MFR4200 Data Sheet, Rev. 0 152 Freescale Semiconductor
Message Buffer Control, Configuration, Status and Filtering Register Set
3.4.1.2
IFLG -- Interrupt Status Flag
The IFLG flag is provided by the CC. It performs different functions depending on the configuration of the corresponding message buffer.
Receive message buffer:
The flag indicates that the controller has updated the receive message buffer due to frame reception (update of data fields and the slot status vector after reception of a valid frame, or update of the slot status vector after reception of an invalid frame). The host can clear the flag by a buffer lock operation. 1 - The controller sets the flag when the receive message buffer was updated after a frame reception. The host must process received data and clear the IFLG bit. 0 - The message buffer is not updated, or the host has cleared the IFLG bit implicitly by locking the message buffer.
Transmit message buffer:
The flag indicates that the message buffer is empty, or that the controller has transmitted a frame from that message buffer. The host can clear the flag by a buffer lock operation. 1 - The flag is set by the controller when the transmit message buffer is empty/not updated (i.e. has been transmitted). The host may write new data to the buffer. 0 - The flag is cleared implicitly by the host when the transmit message buffer is updated (i.e. locked).
Receive FIFO buffer:
The flag has no meaning; it will never be set. NOTE 1. The IFLG bit is set to the value of the CFG bit with each write to a BUFCSnR register, during the configuration state. During normal operation, the controller updates the IFLG bit after frame transmission (transmit message buffer) and after frame reception (receive message buffer). -- If CFG is clear (receive message buffer) the CC clears the IFLG bit, also, indicating that the receive message buffer does not hold new receive data. -- If CFG is set (transmit message buffer) the CC sets the IFLG bit, also, indicating that the transmit message buffer is empty and will be filled by the host application. 2. If the host does not write to a BUFCSnR register during the configuration state, the IFLG holds the value it had before it entered the configuration state.
3.4.1.3
IENA -- IFLG Interrupt Enable
This bit enables the corresponding message buffer as an IFLG bit interrupt source. If the message buffer is configured as a receive message buffer, the generated by the CC interrupt is a read interrupt. If the message buffer is configured as a transmit message buffer, the interrupt generated by the CC is a write interrupt. 1 - The corresponding message buffer interrupt is enabled.
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 153
MFR4200 FlexRay Communication Controller
0 - The corresponding message buffer interrupt is disabled. This bit is not used for the FIFO.
3.4.1.4
LOCK -- Message Buffer Lock Request
The bit has various functions depending on the configuration of the corresponding message buffer. The host can implicitly lock/unlock the buffer by writing `1' to the LOCK bit. Writing a `1' to the LOCK bit toggles the value of the LOCK bit: * A buffer is locked when the LOCK bit read operation returns `1'. * A buffer is unlocked when the LOCK bit read operation returns `0'.
Receive FIFO:
The host must lock a FIFO buffer to make it accessible in the active receive FIFO buffer window. The host can request a FIFO buffer lock by writing a `1' to the LOCK bit of buffer 0, provided the FIFO is configured. Writing a `0' to the LOCK bit has no effect on the bit. An attempt to lock the FIFO through, not buffer 0, but another FIFO buffer's LOCK bit, causes a FIFO buffer lock error (see Section 3.2.3.6.3, "CHI Error Register (CHIER)").
Receive message buffer:
The host must lock a receive message buffer in order to make it accessible in the active receive message buffer window. The host can request a message buffer lock by writing a'1' to the LOCK bit. Writing a `0' to the LOCK bit has no effect on the bit. When the buffer is locked, the LOCK bit read operation returns `1'.
Transmit message buffer:
The host must lock the buffer in order to make it accessible through the active transmit message buffer window. The host can request a buffer lock by writing a `1' to the LOCK bit. Writing a `0' to the LOCK bit has no effect on this bit. When the buffer is locked, the LOCK bit read operation returns `1'. A buffer committed for transmission (appropriate BUFCMT bit is `1') cannot be locked. If the host sends a lock request for the committed transmit message buffer, a lock error will be raised (see Section 3.2.3.6.3, "CHI Error Register (CHIER)"). * NOTE For more information about the locking/unlocking procedure, see Section 3.5.3.4, "Active Buffers Locking/Unlocking and Locking Timing". Writing to the LOCK bit causes all other bits of a message buffer control and status register to be ignored for this write access to the buffer control register, i.e. it is not possible to update the buffer control register with the same write operation as toggles the locked/unlocked status of the buffer. The lock/unlock request is not stored -- there is no pending lock request.
*
MFR4200 Data Sheet, Rev. 0 154 Freescale Semiconductor
Message Buffer Control, Configuration, Status and Filtering Register Set
*
*
Unlocking the buffer in the FIFO moves the FIFO buffer access pointer to the next buffer in the FIFO (see Section 3.6, "Receive FIFO Function"). So, the FIFO does not support multiple consecutive locking/unlocking of the same FIFO entry. The host locks the FIFO buffers by setting the LOCK bit in FIFO buffer number 0.
3.4.1.5
BUFCMT -- Message Buffer Commit Flag
The host commits a transmit message buffer for transmission by setting the BUFCMT flag of the corresponding buffer to `1'. The CC checks the BUFCMT bit of all transmit message buffers when it schedules a transmission. The CC can transmit, or put a frame from a transmit message buffer into a transmission schedule, only when the buffer is committed for transmission (BUFCMT = 1), unlocked (LOCK = 0), and all internal procedures on that transmit message buffer are finished (copying process, unlock process, a transmission). At the end of buffer transmission, The CC clears the BUFCMT bits of single transmit message buffers and CC part buffers of double transmit message buffers committed for transmission. The CC clears the BUFCMT bit of a double buffer's host part at the end of the buffer copy process. During the buffer copy process, the CC copies buffer data from the buffer's CC part to the buffer's host part. The host may set the BUFCMT bit only for a locked transmit message buffer. To complete the commit operation, the host must unlock the buffer. Thereafter, the CC indicates a successful commitment with the BUFCMT set. The read operation of a BUFCMT bit always returns a `0' for a locked buffer. 1 - The transmit message buffer is committed for transmission. 0 - The transmit message buffer is not committed for transmission. NOTE This flag is related only to transmit message buffers. Reading or writing to BUFCMT bit in a receive message buffer has no meaning (i.e., this bit is not used). When the host writes `1' to the BUFCMT bit, that value will be stored until the CC clears it; so, only one write is necessary. Writing a `0' to the BUFCMT location does not change its state.
3.4.1.6
ChA, ChB -- Channel A and Channel B Flags
ChA and ChB are channel filtering bits associated with each buffer. They serve as a filter for a receive message buffer, and as a control field for a transmit message buffer.
Receive message buffer:
Received frames are stored if they are received on all the specified channels in the channel filtering field. Other filtering criteria must also be met.
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 155
MFR4200 FlexRay Communication Controller
Transmit message buffer:
The content of the buffer is transmitted only on the channels specified in the channel filtering field when the cycle counter filtering and frame ID filtering criteria are also met.
Receive FIFO:
Those bits have no meaning for the receive FIFO (refer to Section 3.6, "Receive FIFO Function" for more information about FIFO filters)
Table 3-15. Channel Filtering Configuration
ChA 1 1 0 0 ChB 1 0 1 0 Transmit message buffer Transmit frame on both channels on channel A on channel B no transmission Receive message buffer Store semantically valid received frame ignore frame received on channel A received on channel B ignore frame
3.4.1.7
CCFE -- Cycle Counter Filtering Enable Bit
The host controls the cycle counter filtering (refer to Section 3.2.3.8.4, "Cycle Counter Filter n Register, n = [0:58] (CCFnR)") of a buffer by the cycle counter filtering enable bit. 1 - Cycle counter filtering is enabled. 0 - Cycle counter filtering is not performed.
3.4.1.8
DATUPD -- Data Updated
DATUPD indicates if the frame data was or was not updated during the last matching slot/cycle/channel triple in the static segment according to the filter. The CC updates the DATUPD bit after every static slot assigned to this buffer. The host may reset this bit during the configuration state by writing a "0" to the bit. Note that DATUPD is not reset by empty minislots in the dynamic segment. It is set, however, when a semantically valid frame is received in the dynamic segment. 1 - A semantically valid (non null) frame was received during the last slot with a matching slot/cycle/channel triple. 0 - Either a frame that was not semantically valid or a null frame was received during the last slot with a matching slot/cycle/channel triple.
3.4.1.9
BT -- Buffer Type
The host can configure every buffer of the CC as a single transmit message buffer or as a double message buffer. The handling and the operations for buffers with different types are specified in Section 3.5, "Message Buffer Handling and Operations". 0 - Single transmit message buffer.
MFR4200 Data Sheet, Rev. 0 156 Freescale Semiconductor
Message Buffer Control, Configuration, Status and Filtering Register Set
1 - Double transmit message buffer.
3.4.1.10
TT -- Type of Transmission
The host can configure the type of transmission used for a buffer. Therefore, the CC can combine two types of systems -- event and state driven systems. 0 - Event type of transmission 1 - State type of transmission NOTE The TT bit controls how the CC operates with the VALID bit.
3.4.1.11
VALID -- Message Buffer Valid Flag
The semantic of this status bit depends on the configuration of the message buffer.
Transmit message buffer:
The valid bit indicates whether a transmit buffer holds valid for transmission data or not. The CC clears the VALID bit of a transmit message buffer when the host locks it. When the host has committed the buffer for transmission (see the BUFCMT bit description in Section 3.4.1, "Message Buffer Control, Configuration and Status Register") and unlocked it, the controller performs the following operations: * Sets the appropriate VALID bit -- valid data frame. * Clears the VALID bit when the frame has been transmitted, if the appropriate TT bit of the buffer is clear (event type of transmission). * Does not change the VALID bit when the frame has been transmitted, if the appropriate TT bit of the buffer is set (state type of transmission). 1 - The corresponding buffer contains a semantically valid frame to be transmitted. 0 - The corresponding buffer does not contain a semantically valid frame to be transmitted.
Receive message buffer
The VALID bit indicates whether a receive message buffer holds semantically valid frame data or not. It is up to the host to reset this bit during the configuration state. It changes to `1' when the first valid non null frame is received. 1 - The corresponding buffer contains semantically valid frame data. 0 - The corresponding buffer does not contain semantically valid frame data.
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 157
MFR4200 FlexRay Communication Controller
NOTE The host can write the VALID bit only during the configuration state, for receive message buffers. During all other modes of the CC this bit is read-only.
3.4.1.12
Reserved -- Reserved
Those bits are reserved for future use. Reserved bit are accessible by host read operations only. They have an undefined state.
3.4.2
Message Buffer Filter Registers
The cycle counter filter register CCFnR[0:58] is shown in the following figures.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Reserved
NU
Cycle Count Mask
RO_NO/WR_CS
Reserved
NU
Cycle Count Value
RO_NO/WR_CS
Figure 3-128. CCFnR, Transmit and Receive Message Buffer Filter Registers
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Reserved
NU
Cycle Count Mask
RO
Reserved
NU
Cycle Count Value
RO
Figure 3-129. CCFnR, CC Part Buffer of a Double Transmit Message Buffer Filter Registers
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Reserved
NU
Cycle Count Mask
NU
Reserved
NU
Cycle Count Value
NU
Figure 3-130. CCFnR, FIFO Buffer Filter Registers
Where:
RO_NO/WR_CS RO NU Field with host read-only access during normal operation (host write access in configuration state only) Field with host read-only access Reserved or not used
Message buffer filter registers sets are used only for transmit and receive message buffers, not for the FIFO. The FIFO has its own filter register set (see Section 3.2.3.8, "Filtering Related Registers").
3.4.2.1
Cycle Counter Filter Register (CCFnR)
The operation of the filtering mechanism depends on the configuration of the buffer.
Receive message buffer:
The received frame is stored only if all the following conditions are met.
MFR4200 Data Sheet, Rev. 0 158 Freescale Semiconductor
Message Buffer Control, Configuration, Status and Filtering Register Set
* * *
The received cycle counter matches an element of the buffer's cycle filter register, if cycle filtering is enabled; Channel and frame ID criteria are met; The received message has passed all error checks (see the PWD: Message Error Check chapter)
Transmit message buffer:
The content of the buffer is transmitted, when an element of the cycle filter register matches the current cycle counter, and the frame ID matches the slot counter value. For a detailed description of the CCFR registers, see Section 3.2.3.8.4, "Cycle Counter Filter n Register, n = [0:58] (CCFnR)".
3.4.3
Receive FIFO Filters
There are two filter sets available for FIFO filtering: * One FIFO acceptance filter set, comprising the following registers: -- FIFO acceptance filter message ID value register (see Section 3.2.3.8.5, "FIFO Acceptance Filter Message ID Value Register (FAFMIDVR)") -- FIFO acceptance filter message ID mask register (see Section 3.2.3.8.6, "FIFO Acceptance Filter Message ID Mask Register (FAFMIDMR)") * One FIFO rejection filter set, comprising the following registers: -- FIFO rejection filter frame ID value register (see Section 3.2.3.8.8, "FIFO Rejection Filter Frame ID Value Register (FRFFIDVR)") -- FIFO rejection filter frame ID mask register (see Section 3.2.3.8.9, "FIFO Rejection Filter Frame ID Mask Register (FRFFIDMR)") The channels, from which the received frame will be accepted or rejected by the FIFO acceptance/rejection filters, are specified by the FAFCHR register (see Section 3.2.3.8.7, "FIFO Acceptance/Rejection Filter Channel Register (FAFCHR)"). NOTE The information from a received frame will be stored in the FIFO provided the following conditions are met: * * * The receive message buffer filtering did not succeed, i.e. none of the configured receive message buffers has a matching filter. The message ID is accepted by the configured acceptance filter set. The frame ID is not rejected by the configured rejection filter set.
NOTE Frame ID filtering and message ID filtering can be enabled/disabled independently of each other by setting the masks and values appropriately:
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 159
MFR4200 FlexRay Communication Controller
*
*
To disable frame ID filtering, set the frame ID value to 0x0000 and the frame ID mask to 0xFFFF. (No semantically valid frame ID will be rejected.) To disable message ID filtering, set the message ID mask to 0x0000 (all message IDs are accepted).
3.5
3.5.1
Message Buffer Handling and Operations
Introduction
The FlexRay MFR4200 uses a partial double buffering technique to provide a scheme for buffer handling. Using this technology, buffers can be configured as single/double transmit message buffers, or partially, as single and as double transmit message buffers, as required by the application. At the same time, the FlexRay MFR4200 offers enhanced: * Active window mechanism * Interrupt service * Buffer access scheme The new buffer handling and operations scheme has the following features. * The host and the CC have independent access to all the buffers. Therefore, the host can access receive/transmit message buffers almost instantly while the CC transmits/receives frames. * The host can configure receive/transmit buffers in the configuration state and partially, during normal operation (see Section 3.5.5, "Buffer Reconfiguration in the Normal State of Operation"). * The buffer configuration map is flexible. * The buffer mechanism supports multiple locking/unlocking of the same transmit buffer, without committing for transmission. * The host can commit a transmit message buffer for transmission without update or with only partial update of its data fields. * The host explicitly controls every transmit buffer commitment for transmission. * The host can access a receive message buffer while the CC receives a new frame for that buffer. All features are described in more detail in the following sections.
3.5.2
Buffer Map
The FlexRay CC memory map including buffers locations is shown in Table 3-1. The host accesses CC internal buffer data, configuration, and status fields only through appropriate active receive/ transmit/FIFO message buffers by using the locking mechanism. Shadow receive message buffers serve the host accesses to message buffers while the CC continues to receive/transmit frames.
MFR4200 Data Sheet, Rev. 0 160 Freescale Semiconductor
Message Buffer Handling and Operations
3.5.3
Active Message Buffers
The concept of active message buffers simplifies buffer access for the host. If a buffer is locked by the host, then, depending on the message buffer configuration, the buffer data and configuration information is mirrored to one of the active buffers -- the active receive message buffer, the active transmit message buffer, or the active receive FIFO buffer.
3.5.3.1
Active Receive Message Buffer
The active receive message buffer (see Table 3-1) contains receive message buffer data and configuration fields. Any receive message buffer is accessible through the active receive message buffer after the locking procedure for this buffer has been finished. The active receive message buffer layout is shown in Table 3-11. Buffer control, configuration, filtering and status data is stored in the buffer control, configuration, status and filtering registers set. The layout of the set is presented in Figure 3-131.
Message Buffer Control, Configuration and Status Register (BUFCS0R)
Cycle Counter Filter 0 Register (CCF0R)
Message Buffer 0 Buffer Control, Configuration, Status and Filtering Registers Set 472 Bytes (4 Words X 59 Buffers)
... ... ...
Message Buffer Control, Configuration and Status Register (BUFCS58R)
Cycle Counter Filter 0 Register (CCF58R)
Message Buffer 58
Figure 3-131. Buffer Control, Configuration, Status/Filtering Register Set for Transmit/Receive Buffers
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 161
MFR4200 FlexRay Communication Controller
NOTE Figure 3-131 does not apply to message buffers configured as receive FIFO buffers.
3.5.3.2
Active Transmit Message Buffer
The active transmit message buffer (see Table 3-1) contains transmit message buffer data and configuration fields. Any transmit message buffer is accessible through the active transmit message buffer after the buffer has been locked successfully. The active transmit message buffer layout is shown in Table 3-13. Buffer control, configuration, filtering and status data is stored in the buffer control, configuration, status and filtering registers set. The layout of the set is presented in Figure 3-131.
3.5.3.3
Active Receive FIFO Buffer
The active receive FIFO message buffer (see Table 3-1) contains receive FIFO buffer data and configuration fields. Any receive FIFO buffer is accessible through the active receive FIFO buffer after the locking procedure for this buffer has been finished. For a detailed description of FIFO access, refer to Section 3.6, "Receive FIFO Function". The active receive FIFO buffer layout is shown in Table 3-12. The locking procedure for receive FIFO buffers is different from the receive/transmit message buffer locking operation (see Section 3.5.3.4, "Active Buffers Locking/Unlocking and Locking Timing" and the LOCK bit description in Section 3.2.3.7.2, "Message Buffer Control, Configuration and Status n Register, n = [0:58] (BUFCSnR)"). NOTE Figure 3-131 is applicable for transmit and receive message buffers only, not for receive FIFO buffers. If a buffer is configured as a receive FIFO buffer, only its buffer control, configuration and status register (BUFCSnR) is used; the CCFnR registers are not. Instead of the CCFnR registers, the FIFO acceptance filter registers and FIFO rejection filter registers must be used. The buffer control, configuration, status and filtering register set for the receive FIFO buffers is shown on the Figure 3-132. Buffer 0 is configured as a receive FIFO buffer.
MFR4200 Data Sheet, Rev. 0 162 Freescale Semiconductor
Message Buffer Handling and Operations
Message Buffer Control, Configuration and Status Register (BUFCS0R)
Not used
Message Buffer 0 -- Configured as a Receive FIFO Buffer Buffer Control, Configuration, Status and Filtering Registers Set 472 Bytes (4 Words X 59 Buffers)
... ... ...
Message Buffer Control, Configuration and Status Register (BUFCS58R)
Cycle Counter Filter 0 Register (CCF58R)
Message Buffer 58
Figure 3-132. Buffer Control, Configuration, Status/Filtering Register Set for Receive FIFO Buffers
Buffer 0 is configured as a receive FIFO buffer; the remaining buffers are configured as receive or transmit message buffers.
3.5.3.4
Active Buffers Locking/Unlocking and Locking Timing
The host accesses any buffer through the active buffers by using the locking/unlocking mechanism. The LOCK bit serves as locking request (control data) and acknowledgement (status data) at the same time (hence, the host write and read operations to that bit return different values). For a detailed description of the LOCK bit, refer to Section 3.4, "Message Buffer Control, Configuration, Status and Filtering Register Set".
Locking/unlocking procedure:
1. The host sends a message buffer lock request by writing `1' to the appropriate LOCK bit of the message buffer in the BUFCSnR register (see Section 3.4.1, "Message Buffer Control, Configuration and Status Register").
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 163
MFR4200 FlexRay Communication Controller
2. The host checks that the message buffer is locked (accessible through an active buffer) by reading the LOCK bit. If the resulting value is `1', the message buffer was locked successfully. Otherwise, the message buffer could not be locked and the lock request must be repeated. 3. At the same time, the host checks for a locking error by reading the lock interrupt flag CHIERRIF in the interrupt status register ISR0 (see Section 3.2.3.6.6, "Interrupt Status Register 0 (ISR0)"). 4. In the event of a locking error, the host may determine the cause of the error (see Section 3.2.3.6.3, "CHI Error Register (CHIER)"), and may retry, if necessary. 5. Depending on the message buffer type, the host performs buffer read or read/write operations when the message buffer becomes available through an active buffer (LOCK = `1'). All transmit message buffers are accessible through the active transmit message buffer, receive message buffers through the active receive message buffer, and FIFO buffers through the active receive FIFO buffer. Once the message buffer is locked, the host accesses it without checking the LOCK bit. 6. When the host has finished the message buffer update, it can unlock the message buffer by writing again `1' to the LOCK bit. This request to unlock the message buffer is always and immediately granted, so the host does not have to check the state of the LOCK bit. 7. The host can start a locking procedure for another message buffer.
Locking principles:
*
* * * * * * * *
* * *
The host accesses the FIFO, receive message buffers, and transmit message buffers only through the active receive FIFO buffer, the active receive message buffer, and the active transmit message buffer. The host must lock a buffer, to make it accessible through an active message buffer. The host must unlock a message buffer when it has finished accessing it. The host cannot access shadow message buffers. The host cannot lock more than one receive message buffer and not more than one transmit message buffer. The host can lock up to three buffers mirrored to the appropriate active buffers at the same time -- one transmit message buffer, one receive message buffer, and one receive FIFO buffer. The host may lock and unlock transmit and receive message buffers several times before committing them. The host may commit a transmit message buffer for transmission (by setting BUFCMT to `1') after performing several locking/unlocking procedures on that buffer before committing. Unlocking the buffer in the FIFO will move the FIFO buffer access pointer to the next buffer in the FIFO. Therefore, the FIFO does not support multiple consecutive locking/unlocking procedures for one FIFO buffer. The host cannot lock CC part buffers of double transmit message buffers. The host can lock only the host part buffers of double transmit message buffers. Once the buffer is locked, the host accesses it without checking the LOCK bit.
MFR4200 Data Sheet, Rev. 0 164 Freescale Semiconductor
Message Buffer Handling and Operations
Locking errors:
Refer to Section 3.2.3.6.3, "CHI Error Register (CHIER)" for a detailed description. The most important points are as follows. * If the controller receives two frames for a receive message buffer that is locked by the host, the controller discards the older frame and sets the frame lost error FLE in the CHIER register. * A message buffer committed for transmission (its BUFCMT bit is `1') cannot be locked. If the host sends a lock request for the committed transmit message buffer, a lock error is raised. * The host cannot access the odd buffers (CC part buffers) of the double transmit message buffers. If it sends a locking request for any odd buffer of a double transmit message buffer, a lock error is raised. * If the host tries to lock a second transmit or receive buffer or a second FIFO buffer, the controller issues a lock error. See the description of the RBLE, TBLE, FBLE bits in Section 3.2.3.6.3, "CHI Error Register (CHIER)". NOTE The host can write the BUFCMT bit of a message buffer only after the buffer is locked and available through an active buffer. The BUFCMT bit is part of the message buffer control, configuration, and status registers BUFCSnR[0:58] (see Section 3.4.1, "Message Buffer Control, Configuration and Status Register").
Locking timing:
If a transmit message buffer (single or double) was committed for transmission in slot n and unlocked by the host, and if the CC has scheduled this buffer for transmission in slot n, then this buffer is locked by the CC for transmission (see the BB bit description in Section 3.2.3.6.3, "CHI Error Register (CHIER)") for the time shown in Figure 3-133.
TX Buffer Locking (Slot ID = n)
communication cycle
4 T slot n-1 slot n
4 T NIT
locking possible
locking impossible1
locking possible
1
If the host issues a lock request here, the CC does not grant the lock request, but sets the BB flag in the CHIER register indicating a transmit message buffer busy lock error.
Figure 3-133. Buffer Busy Bit Timing for a Transmit Message Buffer
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 165
MFR4200 FlexRay Communication Controller
3.5.4
Buffer Configuration
For the CC to start up correctly, the host must configure all the used buffers during the configuration state. The host can reconfigure buffers partially during normal operation (see Section 3.5.5, "Buffer Reconfiguration in the Normal State of Operation"). An example of buffer configuration is presented in Figure 3-134. Each buffer is one of following: * Receive FIFO buffer * Receive message buffer * Single transmit message buffer * Double transmit message buffer Each double transmit message buffer consists of two parts -- the host part buffer and the CC part buffer. The host part buffer of a double transmit message buffer is a buffer with an even number configured as a double transmit message buffer. The CC part buffer of a double transmit message buffer is a buffer with the next (after the host part buffer) number. The accessibility of buffer fields depends on the buffer configuration. All information about buffer field accessibility is summarized in Table 3-16.
MFR4200 Data Sheet, Rev. 0 166 Freescale Semiconductor
Message Buffer Handling and Operations
Table 3-16. CC Buffer Fields Accessibility
Field Buffer R* PP NFI SYNC STARTUP FRAME ID Cycle Counter Payload Length Header CRC DATA Message Buffer Slot Status Vector CFG IFLG IENA LOCK BUFCMT ChA ChB DATUPD BT CCFE TT VALID Cycle Counter mask Cycle Counter Value RO RO RO RO RO RO_NO/WR_CS RO RO RO RO RO RO_NO/WR_CS RO WR WR NU RO_NO/WR_CS RO_NO/WR_CS RO_NO/WR_CS NU RO_NO/WR_CS NU RO_NO/WR_CS RO_NO/WR_CS RO_NO/WR_CS RO RO RO RO RO RO RO RO RO RO RO NU NU NU WR NU NU NU NU NU NU NU NU NU NU Receive Message Buffer Receive FIFO Buffer Single Transmit Message Buffer for Static Segment RO_NO/WR_CS RO_NO/WR_CS NU NU NU RO_NO/WR_CS NU RO_NO/WR_CS RO_NO/WR_CS WR RO RO_NO/WR_CS RO WR WR WR RO_NO/WR_CS RO_NO/WR_CS NU RO_NO/WR_CS RO_NO/WR_CS RO_NO/WR_CS RO RO_NO/WR_CS RO_NO/WR_CS Single Transmit Message Buffer for Dynamic Segment WR WR NU NU NU WR NU WR WR WR RO RO_NO/WR_CS RO WR WR WR RO_NO/WR_CS RO_NO/WR_CS NU RO_NO/WR_CS RO_NO/WR_CS WR RO RO_NO/WR_CS RO_NO/WR_CS Host Part Buffer of a Double Transmit Message Buffer RO_NO/WR_CS RO_NO/WR_CS NU NU NU RO_NO/WR_CS NU RO_NO/WR_CS RO_NO/WR_CS WR RO RO_NO/WR_CS RO WR WR WR RO_NO/WR_CS RO_NO/WR_CS NU RO_NO/WR_CS RO_NO/WR_CS RO_NO/WR_CS RO RO_NO/WR_CS RO_NO/WR_CS
Where
RO_NO/WR_CS RO WR NU Field with host read-only access during normal operation. Host write access only in configuration state Field with host read-only access Field with host read/write access Not used (always hold fixed value - `0'). Fields with host read access only
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 167
MFR4200 FlexRay Communication Controller
Configuration Procedure during Configuration State
1. The CC enters the configuration mode after a hard reset or by the CONFIG bit in the MCR0 register being set (see Section 3.2.3.2.1, "Module Configuration Register 0 (MCR0)"). After a hard reset, all message buffers are initialized to as receive message buffers disabled for receive operations (frame ID=0x0). All the bits in the BUFCSnR registers are initialized to 0; the frame ID fields and CCFnR are cleared (to 0). 2. After the CC has entered the configuration state, the host configures a message buffer: -- The host configures the BUFCSnR register (CFG, IENA, CHA, CHB, BT, CCFE, and TT bits) (see Section 3.4.1, "Message Buffer Control, Configuration and Status Register"). -- The host configures the CCFnR register of the message buffer. -- The host locks a message buffer in accordance with Section 3.5.3.4, "Active Buffers Locking/Unlocking and Locking Timing". -- After the message buffer is locked, the host configures the remaining configuration fields of the message buffer in accordance with the configuration principles (see below). -- The host unlocks the message buffer. 3. After the host has configured the message buffers, it requests the CC to leave the configuration state by setting the CONFIG bit in the MCR0 register to `0'. Configuration becomes active after the CC leaves the configuration state. 4. After the CC leaves the configuration state, it goes to the normal mode of operation (see Section 3.9, "Communication Controller States"). NOTE After leaving the hard reset state (the hard reset signal is negated), on the next rising edge of the CC_CLK signal, the CC starts performing an internal initialization procedure (see Section 3.9.1, "Hard Reset State" and Section 3.2.3.1.3, "Magic Number Register (MNR)"). During this internal initialization procedure, the CC initializes its internal memory, including the following message buffer configuration/control parameters. * Frame ID = 0x0 * CCFnR: Cycle Count Mask and Cycle Counter Value fields = `0's * BUFCSnR: -- BUFCMT = 0 -- ChA,ChB = 0 -- BT= 0 -- CCFE = 0 -- TT = 0 -- LOCK = 0 -- IFLG = 0 -- VALID = 0 -- IENA = 0
MFR4200 Data Sheet, Rev. 0 168 Freescale Semiconductor
Message Buffer Handling and Operations
-- CFG = 0 -- DATUPD = 0 During the internal initialization procedure, the host must not access any CC registers except MNR (see Section 3.2.3.1.3, "Magic Number Register (MNR)"), which acknowledges the finish of the internal initialization procedure.
Message Buffer Configuration Principles
*
* *
*
* * *
* * *
After a hard reset, all message buffers are initialized as receive message buffers disabled for receive operations (frame ID=0x0). In normal operation, any buffers not configured by the host, during the configuration state, remain receive message buffers disabled for receive operations. If a configuration includes FIFO buffers (see Section 3.2.3.7.1, "FIFO Size Register (FSIZR)"), the FIFO starts from message buffer 0 (see Figure 3-134). Buffers of different types can be mixed in the buffer map (receive, single transmit, double transmit, and transmit/receive message buffers that are not used for transmit/receive operations (frame ID=0x0)) (see Figure 3-134). FIFO buffers: -- must be placed in a continuous subset of message buffers that is uninterrupted by buffers of other types -- the number of message buffers reserved for the FIFO is determined by the FIFO size register value (see Section 3.2.3.7.1, "FIFO Size Register (FSIZR)") The host part buffer of a double transmit message buffer must have an odd number. The number of the CC part buffer of a double transmit message buffer must be its host part buffer + 1. During the configuration state, only the host part buffer of a double transmit message buffer is available for host read/write configuration operations. Hence, the host part buffer configuration is used for both parts of a double transmit message buffer. The configuration of the host part buffer overwrites the configuration of the CC part buffer. Only transmit message buffers can be configured as double transmit message buffers. FIFO and receive message buffers are always single buffers. CC part buffers of double transmit message buffers have read-only host access. CC part buffers cannot be locked; consequently, the host can read only the BUFCSnR and CCFnR registers of the buffer.
An example of buffer configuration is presented in Figure 3-134.
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 169
MFR4200 FlexRay Communication Controller
Buffer 0 Buffer 1 Buffer 2 Buffer 3 Buffer 4 Buffer 5 Buffer 6 Buffer 7 Buffer 8 Buffer 9 Buffer 10 Buffer 12 Buffer 13 Buffer 14 Buffer 16 Buffer 17 Buffer 18 Buffer 19 Buffer 15 Buffer 11
Host cannot reconfigure the FIFO size during Normal mode of operation
Host can reconfigure those buffers during Normal mode of operation
...
...
Buffer 52 Buffer 54 Buffer 56 Buffer 58
Buffer 53 Buffer 55 Buffer 57
Buffer Buffer Buffer Buffer
- Receive FIFO Buffer - Receive Message Buffer - Transmit Message Buffer (Dynamic segment) - Transmit Message Buffer (Static segment)
Buffer Buffer Buffer
- Single Buffer - Double Buffer
Figure 3-134. Example of a Buffer Configuration
3.5.4.1
Receive Message Buffer Configuration
Receive message buffers can be configured in the configuration state. The configuration must be done in accordance with the configuration procedure and principles. The CFG bits in the BUFCSnR of receive message buffers are 0. The number of receive message buffers is configurable; however, receive message buffers cannot be placed between FIFO buffers or between the host and CC parts of double transmit message buffers. Receive message buffers cannot be double message buffers.
MFR4200 Data Sheet, Rev. 0 170 Freescale Semiconductor
Message Buffer Handling and Operations
It is possible to configure from 0 to 59 buffers as receive message buffers.
3.5.4.2
Transmit Message Buffer Configuration
Transmit message buffers can be configured in the configuration state. Single transmit message buffers for the dynamic segment can be configured in the configuration state and during normal operation. The configuration must be done in accordance with the configuration procedure and principles. The CFG bits in the BUFCSnR of transmit message buffers are 1's. The number of transmit message buffers is configurable; however, transmit message buffers cannot be placed between FIFO buffers or between the host and CC parts of double transmit message buffers. Transmit message buffers can be configured as single or double transmit message buffers for static and dynamic segments. If a message buffer is part of a double transmit message buffer: * The host part buffer must be an even number buffer only. * The CC part buffer must be an odd number buffer only. The number of the CC part buffer must be its host part buffer number + 1. * The host must set only a host part buffers configuration in the configuration state. CC part buffers of double transmit message buffers will be initialized by the same configuration automatically. * In normal mode of operation host operates only with the host part buffers control and status fields. It has read-only accesses to the CC part buffers control and status fields (see Section 3.4.1, "Message Buffer Control, Configuration and Status Register"). It is possible to configure from 0 to 59 message buffers as single transmit message buffers, or 29 double transmit message buffers, or different mixtures of single and double transmit message buffers (for example, 15 single transmit message buffers + 22 double transmit message buffers).
3.5.4.3
Receive FIFO Configuration
FIFO Receive buffers can be configured only in the configuration state. First, the host must set the FIFO size register (see Section 3.2.3.7.1, "FIFO Size Register (FSIZR)"). NOTE The FIFO is configured only via the FSIZR register. The host can write the FIFO size register only during the configuration state. The configuration must be done in accordance with the configuration procedure and principles. If a configuration includes FIFO buffers, message buffer 0 must be the first FIFO buffer (see Figure 3-134). The subset of FIFO buffers must be contiguous. It is possible to configure up to 59 message buffers as FIFO receive message buffers.
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 171
MFR4200 FlexRay Communication Controller
3.5.5
Buffer Reconfiguration in the Normal State of Operation
Reconfiguration procedure during the normal state of operation:
The host must follow the configuration principles and procedure as well as reconfiguration principles, while reconfigures the message buffers during normal operation.
Reconfiguration principles:
1. Only single transmit message buffers for dynamic segment (STBDS) are reconfigurable in normal operation. 2. States and parameters that are reconfigurable: -- Parameters of STBDS accessible for host write operations (see Section , "Receive, receive FIFO, and transmit message buffers are accessible to the host MCU only through the active receive, active transmit, and active receive FIFO buffers." and Section 3.4.1, "Message Buffer Control, Configuration and Status Register"). 3. Buffers, states and parameters that are not reconfigurable: -- FIFO size -- Double transmit message buffers -- Receive message buffers -- Buffers from transmit message buffers to receive message buffers, and vice versa -- All the filtering parameters (channel filters configuration, frame ID filters configuration (except single transmit message buffers for dynamic segment), message ID filters configuration and masks, message buffer filtering configuration) -- Buffers cannot be reassigned from static to dynamic segment, or vice versa. -- FIFO -- Buffers cannot be reconfigured from single to double transmit message buffers, or vice versa. -- Buffers assigned to the static segment are not reconfigurable Figure 3-135 shows how CC buffers can be configured and reconfigured during the configuration state, and reconfigured during the normal state of the CC:
MFR4200 Data Sheet, Rev. 0 172 Freescale Semiconductor
Message Buffer Handling and Operations
Single/double transmit message buffer, static segment
Double transmit message buffer, dynamic segment
Receive message buffer
Single transmit message buffer, dynamic segment
Transition in the Normal and in the Configuration states Transition in the Configuration state
Figure 3-135. Transition Scheme Between Different Buffer Types Depending on Operational Mode of CC
3.5.6
Message Buffer Operations
The main principles of the host and the CC data exchange are as follows. * The host has full control over the CC. * After the configuration step is performed by the host, the CC can run the FlexRay protocol. The CC does not require any additional support from the host for operation in a cluster without faults and disturbances. * Data exchange is based on access requests and acknowledge flags. The host and the CC provide a set of transmit/receive operations for managing data flow between a FlexRay network and the host.
3.5.6.1
Data collection during Receive Operation
Frames are stored in the CHI if there is at least one receive message buffer or FIFO receive buffer configured. Therefore, it actively participates in the internal buffer filters matching process, which takes
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 173
MFR4200 FlexRay Communication Controller
place every time the communication controller receives a semantically valid and syntactically correct frame. An example of operations during a frame reception is shown on the Figure 3-136. 3.5.6.1.1 The Host Operations during Reception
After every successful frame reception, the CC sets the flag IFLG of a matching buffer. This flag indicates that a frame has been received and stored in a buffer, and the host can read it to empty the buffer for the next reception. All IFLG bits are logically OR'ed and connected to the host interrupt line. The host receives an interrupt if at least one IFLG is set and not masked by the appropriate IENA bit in the BUFCSnR register. To read a receive message buffer the host must perform the following steps: 1. Process an interrupt by reading the ISR registers, if necessary. or check the IFLG bits of receive message buffers. 2. Locate one IFLG interrupt source register by reading the receive message buffer interrupt vector register (see Section 3.2.3.6, "Interrupt and Error Signaling Related Status Registers"). 3. Send a lock request (write LOCK bit with the value `1') for the corresponding message buffer, to make it accessible through the active receive message buffer. 4. Wait for lock acknowledge (LOCK bit reads as value `1'). 5. Read the active receive message buffer. 6. Send an unlock request for the message buffer.
MFR4200 Data Sheet, Rev. 0 174 Freescale Semiconductor
Message Buffer Handling and Operations
Host Operations Shadow Buffer
Receive Message Buffer A
CC Operations
LOCK1
IFLG
..
Buffer is locked Buffer is still locked by Host and performs read/write operation with the buffer 1 LOCK1 IFLG 1 DATA0
CC continues reception of the new message DATA1 Reception
..
Buffer is still locked by Host. It has finished read/write operation with the buffer and unlocks it by sending an Unlock request (writes `1' again to the LOCK bit. 1 LOCK1 1 IFLG
CC continues reception of the new message DATA0 DATA1 Reception
CC received the new semantically valid frame 0 LOCK1 0 IFLG DATA0 DATA1
Buffer is unlocked and IFLG is reset to `0'
CC in the shadow buffer with buffer A
0 LOCK1
1 IFLG
DATA0
Time
Note: Read back value of the bit.
1
Freescale Semiconductor
Host receives an IFLG interrupt
MFR4200 Data Sheet, Rev. 0
..
New Frame Reception
Buffer is locked by Host and performs read/write operation with the buffer 1 1 DATA0
DATA1 Reception
CC starts reception of a new message that matches the filtering conditions of buffer A after at least one communication cycle
Figure 3-136. Operations During a Frame Reception
LOCK1
Host receives an IFLG interrupt and locks the buffer by sending a lock request (writes `1' to the LOCK bit) and checking the acknowledge LOCK1 bit 0 IFLG 1 DATA0
CC received a new message for buffer A updated the buffer
... ...
175
MFR4200 FlexRay Communication Controller
3.5.6.1.2
CC Operations during Reception
The CC receives every frame to a shadow message buffer first, as shown in Figure 3-136. NOTE A frame received in slot n and stored in a configured message buffer or FIFO is accessible to the host, through the CHI, 16 T after the start of slot n+1. The CC performs a filtering process based on filter configuration. This process takes place every time the CC receives a semantically valid and syntactically correct frame. In this process, the CC sequentially compares all the receive message buffers filters to the received ones. The first message buffer matching all the filtering requirements will be updated with the new frame. The matching message buffer will be overwritten, if the message buffer was already full (IFLG = 1). If a received frame does not match the filtering fields of any receive message buffer, it will be compared with the FIFO filters. If a frame matches the FIFO filtering parameters, it will be stored in the FIFO; otherwise, it will be ignored. The CC ignores invalid frames and does not store them in buffers. The received frame will be stored in the first matching receive message buffer. The search engine starts after the end of the FIFO, or at message buffer 0 (if no FIFO is configured), and searches upwards. Thus, if there are two receive message buffers matching the received frame, the frame will always be stored in the buffer with the lower buffer index. The CC does not check which buffer fits the frame best. Thus, if a message buffer holds a filtering subset of another message buffer, that message buffer (with the filtering subset) must be located at the lower message buffer index. The application must manage this. The matching message buffer will not be updated if it is still locked. If the message buffer is locked after reception, it will be updated as soon as it is unlocked. If the buffer is locked for more than one communication cycle and, if the frame, which matches that message buffer filtering, is received twice during this period, the buffer will be updated with the newer frame, as soon as it is unlocked, and a frame lost error will be raised to the host (see Section 3.2.3.6.3, "CHI Error Register (CHIER)"). The corresponding IFLG bit (message buffer is full) is set every time the message buffer is updated, and, if enabled, a receive interrupt is generated. In the case of locking, when the host may lock one receive message buffer, the CC has two shadow message buffers per channel to continue frame reception targeted for any receive message buffers including the locked one. NOTE During the filtering process, the CC must check the payload length field of a received frame before the CC applies message ID filtering. If the payload length of a received frame is too small to hold the full message ID value, the CC performs the message ID filtering with the default message ID value (0x0).
3.5.6.2
Data Collection during Transmit Operation
Some or all of the message buffers can be configured as transmit message buffers via the BUFCSnR register sets (see Section 3.4.1, "Message Buffer Control, Configuration and Status Register"). The configuration of transmit message buffers must comply with the buffer configuration procedure and
MFR4200 Data Sheet, Rev. 0 176 Freescale Semiconductor
Message Buffer Handling and Operations
principles. The CC handles transmit operations differently during the static and dynamic segments of transmission; it also handles single and double transmit message buffers differently. For transmission, the CC uses data from configured and committed transmit message buffers only. The host submits a frame for transmission by committing a message buffer for transmission (BUFCMT bit) and by subsequent unlocking of the transmit message buffer. The transmit message buffer remains valid for transmission until its VALID bit = 1. To prepare a transmit message buffer for transmission, the following steps must be performed. 1. Configure the message buffer as a transmit message buffer in accordance with the buffer configuration procedure and principles. 2. Lock the corresponding message buffer, to make it accessible in the active transmit message buffer. Buffer locking must be done in accordance with the locking/unlocking procedure and principles 3. Write/read the active transmit message buffer to change or update the message buffer content. 4. Commit the message buffer for transmission, by setting the BUFCMT bit to `1'. 5. Unlock the message buffer.
Commitment-to-transmission time for single and double transmit message buffers:
To transmit a frame in slot n, the host must commit and unlock the buffer: * Static segment transmit message buffer: 4 T before the beginning of slot n-1 or the network idle time (NIT). * Dynamic segment transmit message buffer: 4 T before the beginning of slot n-1 or the network idle time (NIT).
Static segment:
For the static segment, if there are several frames pending for transmission, the frame with the ID corresponding to the next sending slot is selected for transmission. The CC checks other filtering fields of those messages. If several frames are suitable for current static slot transmission, the CC performs an internal arbitration. The CC transmission procedure is described in detail in the frame processing section of the PWD. The most important points are as follows. * Only valid frames (VALID bit = 1) can be transmitted by the CC. * If there are valid frames with the same frame ID, the CC checks their filter fields. If two or more of them match the conditions of the transmit slot, the message buffer with the lowest message buffer number wins the internal arbitration. * If two buffers are assigned to the same static slot but to different transmission channels, the CC transmits them simultaneously on assigned channels during transmission of that static slot. * If a message buffer was committed for transmission (BUFCMT = 1) it becomes valid (VALID = 1) after buffer unlock operation, and the host cannot lock it until it is transmitted at least once. The CC changes the following bits, if a message from a message buffer has been sent.
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 177
MFR4200 FlexRay Communication Controller
* * *
IFLG BUFCMT VALID (depending on the TT bit of the BUFCSnR register -- see Section 3.4.1, "Message Buffer Control, Configuration and Status Register)
Dynamic segment
In the dynamic segment, if several valid frames are pending within the interface, the frame with the highest priority (lowest frame ID) is selected next. The CC transmission procedure is described in detail in the frame processing section of the PWD document. The most important points are as follows. * In the dynamic segment, different minislot sequences are possible on both channels (concurrent sending of different IDx on both channels). * Pending frames are selected in accordance with their identifier and their filter configuration. * Frames overlapping with the network idle time (NIT), defined by the NITCR (see Section 3.2.3.3.18, "Network Idle Time Configuration Register (NITCR)"), will be not transmitted. * If there are two or more transmit message buffers with the same identifier, the message buffer with the lowest number wins the internal arbitration and will be transmitted; the remaining message buffer(s) with matching filters will be removed from the arbitration process until the next communication cycle. * If a message buffer was committed for transmission (BUFCMT= 1) it becomes valid (VALID = 1) after the buffer unlock operation. The host cannot lock it until it is transmitted; this prevents changing of a message buffer's fields, while it is waiting to be transmitted. * Only valid frames (VALID bit = 1) can be transmitted by the CC. * Only identifiers that are higher than the highest static identifier are allowed for the dynamic segment. * If there are valid frames with the same frame ID, the CC must check their filter fields. If two or more of them match the conditions of the transmit slot, the message buffer with the lowest address wins the internal arbitration. * The CC does not transmit null frames in the dynamic segment. * If two message buffers are assigned to the same dynamic slot but to different transmission channels, the CC transmits them on the same minislot number and assigned channels during transmission of that dynamic slot. The CC changes the following bits if the message buffer has been sent. 1. IFLG 2. BUFCMT 3. VALID (depending on the TT bit of the BUFCSnR register -- see Section 3.4.1, "Message Buffer Control, Configuration and Status Register)
MFR4200 Data Sheet, Rev. 0 178 Freescale Semiconductor
Message Buffer Handling and Operations
3.5.6.2.1
Single Transmit Message Buffer Data collection during Transmit Operation
The host can configure some message buffers of the CC as single transmit message buffers. If there is at least one transmit message buffer configured, or the sync frame register value (see Section 3.2.3.3.29, "Sync Frame Register (SYNCFR)") is not 0x0, the CC can actively transmit frames out of the connected FlexRay network. To configure a single transmit message buffer, the following next steps must be performed. 1. Configure the message buffer as a transmit message buffer, in accordance with the configuration procedure and principles. 2. Set the message buffer type bit (BT) to 0 -- single transmit message buffer. After a buffer is configured as a single transmit message buffer and a CC enters the normal mode of operation, The host can start preparation and commitment of frames for transmission. Figure 3-137 shows an example of host and CC operation on a single transmit message buffer during frame transmission in normal operation. As shown in Figure 3-137, The host sends a lock request for a message buffer and always checks for the lock request acknowledge bit LOCK to be a `1' before it starts to update the message buffer content (see Section 3.5.3.4, "Active Buffers Locking/Unlocking and Locking Timing" and Section 3.2.3.6.3, "CHI Error Register (CHIER)" for more information). After a transmit message buffer is locked, the host can update it, via the active transmit message buffer, and can commit it to transmission by setting the BUFCMT bit to `1' and unlocking the message buffer. After transmission, the CC sets the IFLG bit of a message buffer, and clears BUFCMT. The CC changes the VALID bit after transmission depending on the TT bit.
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 179
MFR4200 FlexRay Communication Controller
Host Operations Lock Request (Host writes LOCK=1) Host updates data and commits buffer for transmission
Transmit Message Buffer with Frame ID = A
CC Operations
0 VALID
1 IFLG
1 LOCK1
0 BUFCMT
DATA1
CC transmission on request. Access not granted because Host locked the buffer Transmission of Null Frame Transmission of DATA1
0 VALID
1 IFLG
1 LOCK
1
1 BUFCMT
DATA1
...
...
VALID
IFLG
BUFCMT
LOCK
1
...
1 VALID
0 IFLG
0 LOCK
1
1 BUFCMT
DATA1
Transmission Done
VALID
IFLG
BUFCMT
LOCK
Lock Request (Host writes LOCK=1) but access not granted because CC locked the buffer. Lock Request (Host writes LOCK=1) but access not granted because CC locked the buffer.
CC transmission request. Access granted
...
1
...
CC transmits DATA1
...
VALID
IFLG
BUFCMT
LOCK
1
...
Lock Request (Host writes LOCK=1) Host updates data and commits buffer for transmission
0 VALID
1 IFLG
1 LOCK
1
0 BUFCMT
DATA1
Transmission Done
0 VALID
1 IFLG
1 LOCK
1
1 BUFCMT
DATA2
Unlock Request (Host writes LOCK = 1)
1 VALID
0 IFLG
1 LOCK
1
1 BUFCMT
DATA2
Time
Note: 1 Read back value of the bit.
Figure 3-137. Operations with a Single Transmit Message Buffer during an Event Type of Transmission for a Static Segment
MFR4200 Data Sheet, Rev. 0 180 Freescale Semiconductor
...
...
1
0
0
1
DATA1
...
...
1
0
0
1
DATA1
...
...
Unlock Request (Host writes LOCK=1)
1
0
1
1
DATA1
CC transmits a Null Frame because the buffer is locked by Host and there is no other matching buffer
...
...
...
Message Buffer Handling and Operations
3.5.6.2.2
Doubled Buffer Data collection during Transmit Operation
The host can configure some message buffers of the CC as double transmit message buffers. If there is at least one double transmit message buffer configured, then the CC can actively transmit frames out of the connected FlexRay network. To configure a double transmit message buffer (Figure 3-138), the follow steps must be performed. 1. Configure the even number message buffer as a transmit message buffer, in accordance with the configuration procedure and principles. 2. Set the message buffer type bit BT (see Section 3.4.1, "Message Buffer Control, Configuration and Status Register") to 1 -- host part buffer of double transmit message buffers (configuration is copied to the CC part buffers automatically). The Figure 3-139 shows an example of a double transmit message buffer data collection during the state driven transmit operation in normal operation. The Figure 3-140 shows an example of a doubled transmit message buffer data collection during the event driven transmit operation. NOTE When the CC transmits a null frame, it does not change the BUFCSnR registers of the buffers.
Buffer number (even) Host Part Buffer n BUFCS(n) Buffer Number+1 (odd) CC part Buffer n+1 BUFCS(n+1)
Figure 3-138. Double Transmit Message Buffer Structure
Host Operations with a Double Transmit Message Buffer during Transmission
The host can perform the following operations on a double transmit message buffer. * Lock buffer for reading and/or modifying. * Read message buffer slot status vector, data and configuration. * Write data. * Commit and unlock for transmission.
Main principles of the host operations with double transmit message buffers:
* * * * * *
The host always operates with host part buffers. The host can perform operations with host part buffers independent of CC transmit operations from the CC part buffers. Data exchange is based on access requests and acknowledge flags. The host and the CC operate only with configured buffers that have frame ID field not equal to `0'. The addresses of the host part buffers do not change during normal operation. The host has read-only access to the CC part buffer BUFCSnR registers.
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 181
MFR4200 FlexRay Communication Controller
* * * *
*
The host operates with a double transmit message buffer in the same way as it does with a single transmit message buffer. The host can receive an IFLG interrupt after transmission of a committed CC part buffer. The host cannot lock a host part buffer (read value of the LOCK= 0) during swap and copy procedures. The host part buffer of a double transmit message buffer cannot be locked (read back value of the LOCK= 0), if the host has committed the host part buffer for transmission but the BUFCMT bit of the CC part buffer is still `1' (a frame has not yet been transmitted). if the host has committed a host part buffer of a double message buffer for transmission, the CC performs an atomic swap of the host part and CC part buffers including the BUFCSnR registers of the host and the CC part buffers, and starts a copy process.
CC Operations with a Double Transmit Message Buffer During Transmission
The CC performs the following operations on a double transmit message buffer. 1. Lock buffer for transmission. 2. Update the message buffer slot status vector of the host and the CC part buffers. 3. Swap host and CC part buffers after commitment for transmission. 4. Copy the CC part buffer to the host part buffer during commitment for transmission. The CC copies the following fields from a CC part buffer of a double transmit buffer to a host part buffer (see Section 3.5, "Message Buffer Handling and Operations"): -- R* -- PP -- Frame ID -- Payload length -- Header CRC -- Data[0:31] -- Message buffer slot status vector
Main principles of CC operations with double transmit buffers:
* * * *
The CC may perform transmit operations from the CC part buffers while the host updates the host part buffers. Data exchange is based on access requests and acknowledge flags. The host and the CC operate only with configured buffers that have frame ID fields not equal to `0'. The numbers of the CC part buffers do not change during normal operation.
As it is presented in Section 3.5.6, "Message Buffer Operations", host operations on a host part of a double transmit message buffer are the same as they are on a single transmit message buffer. However, CC operations with host part and CC part buffers are different.
MFR4200 Data Sheet, Rev. 0 182 Freescale Semiconductor
Message Buffer Handling and Operations
Table 3-17. Double Transmit Message Buffer Data Collection with State Driven Transmit Operation
Time Point 1 Host Operations The host sends a lock request to a host part buffer of a - double transmit message buffer (it writes LOCK='1') and receives a request acknowledge (read back value of the LOCK='1'). The host part buffer is locked. The host updates the buffer The CC starts frames transmission and sends a buffer lock contents. request for CC part buffer to transmit the frame this buffer holds. The host part buffer is locked. The host updates the buffer The CC locked the CC part buffer and transmits the frame contents. from it The host part buffer is locked. The host finished data The CC finished transmission and updates the BUFCMT, update (buffer holds the DATA1), committed the buffer for VALID and IFLG bits of the CC part buffer transmission (BUFCMT='1') and sent an unlock request (it writes again LOCK='1') Unlock granted. The CC clears the IFLG bit of the host part buffer to `0' and sets the VALID bit. The CC performs an atomic swap of the host part and CC part buffers including the BUFCSnR registers and starts a copy process. The atomic swap of the host part and CC part buffers is done. The CC starts the copy process from the new CC part buffer to the host part buffer. BUFCMT bit of the host part buffer is `1' until those processes are finished (The host cannot lock the host part buffer). The CC continues the copy process and starts frames transmission. The CC sends a buffer lock request for CC part buffer to transmit the frame this buffer holds. CC Operations
2
3 4
5
6
-
7
-
8
The host sends a lock request to a host part buffer of a The CC continues the copy process.The CC locked the double transmit message buffer (it writes LOCK='1') but CC part buffer and transmits the frame from it. does not receive a lock request acknowledge (read back value of the LOCK='0') due to the copy process running. - The CC transmits the frame from the CC part buffer. The CC finished the copy process (The host can lock the buffer).
9
10
The host sends a lock request to a host part buffer of a The CC transmits the frame from the CC part buffer. double transmit message buffer (it writes LOCK='1') and receives a request acknowledge (read back value of the LOCK='1') and has starts to update data in the host part buffer.
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 183
1
Lock Request (Host writes LOCK=1) 0 IFLG IFLG BUFCMT BUFCMT VALID LOCK1 VALID 1 1 0 DATA0 1 1 0 Host updates data and commits buffer for transmission
DATA0 CC transmission request
2
3
0 IFLG BUFCMT VALID LOCK1 VALID
1
1
0
DATA0 Buffer locked 1 1 IFLG
0 BUFCMT
DATA0 Buffer locked by CC
CC transmits DATA0
Figure 3-139. Doubled Buffer Data Collection with State Driven Transmit Operation
Host Operations
Host part buffer -- even part of a double buffer (even buffer number)
CC part buffer -- odd part of a double buffer (odd buffer number)
CC Operations
...
...
Transmission of DATA0
...
...
...
...
4
...
IFLG
VALID
VALID
IFLG
BUFCMT
BUFCMT
LOCK1
Transmission done Swap
5
0 BUFCMT IFLG VALID LOCK1
1
1
0
DATA1
1 VALID
1 IFLG
0 BUFCMT
DATA0
CC performs atomic swap operation of two buffers
6 7 8
CC performs a copy process
...
0 VALID
1 IFLG
1 LOCK1
0 BUFCMT
1 VALID
0 IFLG
1 BUFCMT
MFR4200 FlexRay Communication Controller
9
Lock not granted
Copy Process
CC transmits DATA0 0 VALID 1 IFLG 1 LOCK1 0 BUFCMT DATA1 1 VALID 0 IFLG 1 BUFCMT DATA1 Buffer locked by CC
10
Lock Request (Host writes LOCK=1) Host updates data and commits buffer for transmission
...
Time
Transmission done
Note: Read back value of the bit.
1
...
Transmission of DATA1
Lock Request (Host writes LOCK=1)
Invalid data during copy process for DATA1
DATA1 Buffer locked by CC
...
...
...
...
...
CC transmission request
...
Unlock Request (Host writes LOCK=1) 0 1 1 0
DATA1 Buffer locked
1
1
0
DATA0 Buffer locked by CC
MFR4200 Data Sheet, Rev. 0
184
Freescale Semiconductor
Message Buffer Handling and Operations
Host Operations Lock Request (Host writes LOCK=1) 0 IFLG VALID LOCK1 VALID IFLG BUFCMT BUFCMT 1 1 0 DATA0 0 1 0 Host updates data and commits buffer for transmission
1 2
DATA0
3
0 IFLG VALID VALID
1
1 BUFCMT LOCK
1
0
DATA0 Buffer locked 0 1 IFLG
0 BUFCMT
DATA0 Buffer locked by CC
4
1 IFLG VALID
1
1 BUFCMT LOCK
1
1
0 VALID
1 IFLG
0 BUFCMT
DATA0 Buffer locked by CC
Swap
5
1 IFLG VALID
1
0 BUFCMT LOCK
0
1
DATA1
0 VALID
1 IFLG
0 BUFCMT
DATA0
CC performs atomic swap operation of two buffers
6 7 8 9
CC performs a copy process
...
0 VALID
1 IFLG
0
1
0 BUFCMT LOCK
1 VALID
0 IFLG
1 BUFCMT
Lock not granted
Copy Process
CC transmits DATA0
10
Lock Request (Host writes LOCK=1) Host updates data and commits buffer for transmission
1 VALID
1 IFLG
1
1
0 BUFCMT LOCK
DATA1
1 VALID
0 IFLG
1 BUFCMT
DATA1 Buffer locked by CC
...
Transmission done
Note: Read back value of the bit.
1
Freescale Semiconductor
Time
...
Transmission of DATA1
Lock Request (Host writes LOCK=1)
Invalid data during copy process for DATA1
DATA1 Buffer locked by CC
...
...
...
...
...
CC transmission request
MFR4200 Data Sheet, Rev. 0
Unlock Request (Host writes LOCK=1)
DATA1 Buffer locked
Figure 3-140. Doubled Buffer Data collection with Event Driven Transmit Operation
Host part buffer -- even part of a double buffer (even buffer number)
CC part buffer -- odd part of a double buffer (odd buffer number)
CC Operations
185
MFR4200 FlexRay Communication Controller
Table 3-18. Double Transmit Message Buffer Data Collection with Event Driven Transmit Operation
Time Point 1 Host Operations CC Operations
The host sends a lock request to a host part buffer of a The Valid bit of the CC part buffer is `0' - data is not valid double transmit message buffer (it writes LOCK='1') and and the CC does not transmit frame containing data from receives a request acknowledge (read back value of the this buffer LOCK='1'). The host part buffer is locked. The host updates the buffer The Valid bit of the CC part buffer is `0' - data is not valid contents. and the CC does not transmit frame containing data from this buffer The host part buffer is locked. The host updates the buffer The Valid bit of the CC part buffer is `0' - data is not valid contents. and the CC does not transmit frame containing data from this buffer The host part buffer is locked. The host finished data The Valid bit of the CC part buffer is `0' - data is not valid update (buffer holds the DATA1), committed the buffer for and the CC does not transmit frame containing data from transmission (BUFCMT='1') and sent an unlock request this buffer (it writes again LOCK='1') Unlock granted. The CC clears the IFLG bit of the host part buffer to `0' and sets the VALID bit. The CC performs an atomic swap of the host part and CC part buffers including the BUFCSnR registers and starts a copy process. The atomic swap of the host part and CC part buffers is done. The CC starts the copy process from the new CC part buffer to the host part buffer. BUFCMT bit of the host part buffer is `1' until those processes are finished (The host cannot lock the host part buffer). The CC continues the copy process and starts frames transmission. The CC sends a buffer lock request for CC part buffer to transmit the frame this buffer holds.
2
3
4
5
6
-
7
-
8
The host sends a lock request to a host part buffer of a The CC continues the copy process.The CC locked the double transmit message buffer (it writes LOCK='1') but CC part buffer and transmits the frame from it. does not receive a lock request acknowledge (read back value of the LOCK='0') due to the copy process running. - The CC transmits the frame from the CC part buffer. The CC finished the copy process (The host can lock the buffer).
9
10
The host sends a lock request to a host part buffer of a The CC transmits the frame from the CC part buffer. double transmit message buffer (it writes LOCK='1') and receives a request acknowledge (read back value of the LOCK='1') and has starts to update data in the host part buffer.
3.6
Receive FIFO Function
Some or all of the message buffers can be configured as a receive first-in-first-out (FIFO) system. The FIFO always starts at message buffer 0 and can be configured to a maximum of 59 message message buffers by means of the FIFO size register (see Section 3.2.3.7.1, "FIFO Size Register (FSIZR)").
MFR4200 Data Sheet, Rev. 0 186 Freescale Semiconductor
Receive FIFO Function
Every incoming frame not matching any receive filter, but matching the programmable FIFO filters, is stored in the FIFO buffer system. In this case, the received frame and its message buffer slot status vector are stored in the next FIFO message buffer, including. There are two status bits in ISR0 (see the RFNEIF and RFOIF bits in Section 3.2.3.6.6, "Interrupt Status Register 0 (ISR0)"): one shows that the receive FIFO is not empty; the other shows that a receive FIFO overrun has been detected. Interrupts are generated, if interrupts are enabled. * * NOTE The CC does not store null frames and invalid frames in FIFO. If the CC has two channels configured, then, during the static part of transmission, the CC stores in the FIFO first the frame received on channel A, and then the frame received on channel B. All FIFO filtering conditions must match for both received frames.
There are two internal (not host accessible) index registers associated with each FIFO. The PUT index register (PUTIDX) is used as an index to the next available location in the FIFO buffer system. When a new frame is received, it is written into the message buffer addressed by the PUTIDX register; the PUTIDX register is then incremented, to address the next message buffer. If the PUTIDX register is incremented past the highest FIFO message buffer, the PUTIDX register is reset to 0. The GET index register (GETIDX) is used to address the next FIFO buffer to be read. The GETIDX register is incremented when unlocking one of the receive FIFO buffers. The FIFO buffer system is completely filled when the PUT pointer (PUTIDX) reaches the value of the GET pointer (GETIDX). New incoming frames cannot be stored in the FIFO. The FIFO overrun flag is set at the end of this frame if no error has occurred. A receive FIFO non empty status is detected when the PUTIDX register differs from the GETIDX register. This indicates that there is at least one received frame in the FIFO buffer system. The PUTIDX register and the GETIDX register cannot be accessed by the host. The FIFO empty, FIFO not empty, and FIFO overrun situations are explained in Figure 3-141.
PUTIDX (WRITE) PUTIDX (WRITE) PUTIDX (WRITE)
0 -
1 -
2 -
0 A
1 -
2 -
0 A
1 B
2 C
GETIDX (READ)
GETIDX (READ)
GETIDX (READ) PUTIDX was incremented last + new incoming message (which is lost)
FIFO Empty
FIFO Not Empty
FIFO Overrun
Figure 3-141. FIFO Status (Empty, Not Empty, Overrun) -- Example of FIFO with Three Message Buffers
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 187
MFR4200 FlexRay Communication Controller
To read a receive FIFO buffer, the host must lock the FIFO buffer by sending a lock request (LOCK='1') to message buffer 0. When a FIFO buffer is locked (read back value of the LOCK='1'), the message buffer addressed by GETIDX appears in the active receive FIFO buffer. After reading, the FIFO buffer must be unlocked, and the GETIDX pointer is incremented. The complete set of FIFO acceptance/rejection filters consists of the following registers (see Section 3.2.3.8, "Filtering Related Registers"). Two filter sets are available for FIFO filtering: * One FIFO acceptance filter set, comprising: -- FIFO acceptance filter message ID value register -- FIFO acceptance filter message ID mask register * One FIFO rejection filter set, comprising: -- FIFO rejection filter frame ID value register -- FIFO rejection filter frame ID mask register * The channels from which the received frame will be accepted or rejected by the FIFO acceptance/rejection filters are specified in Section 3.2.3.8.7, "FIFO Acceptance/Rejection Filter Channel Register (FAFCHR)". The FIFO acceptance filter value registers define the acceptable pattern of the frame to be received. The FIFO acceptance filter mask registers specify which of the corresponding bits are marked `don't care' for acceptance filtering. The FIFO rejection filter value registers define the acceptable pattern of the frame to be rejected. The FIFO rejection filter mask registers specify which of the corresponding bits are marked `don't care' for rejection filtering. If acceptance and rejection filter are configured to match the same identifier, the frame will be rejected. * NOTE The content of the FIFO is not reset by entering, being in, or leaving the configuration state. Therefore, if the CC has stored any messages in the FIFO, and has entered the configuration state without reading those messages, and has returned to normal operation, then those messages will remain in the FIFO. The CC automatically updates the BUFCSnR registers of the FIFO buffers to 0x0 values when the CC enters the configuration state for the first time. The host must clear buffer control flags CFG, IFLG, and IENA (write 0x0000 to the buffer control register) of a message buffer that has already been in use or that has already been configured, before the host may extend the FIFO (alter the FIFO size) to include that message buffer in the FIFO. Failing to do so will result in invalid indications in the RBIVEC/TBIVEC registers (see Section 3.2.3.6.1, "Receive Buffer Interrupt Vector Register (RBIVECR)" and Section 3.2.3.6.2, "Transmit Buffer Interrupt Vector Register (TBIVECR)"), i.e. RBIVEC/TBIVEC
MFR4200 Data Sheet, Rev. 0 188 Freescale Semiconductor
*
*
Host Controller Interfaces
will still indicate asserted IFLG bits for the message buffer that has been included in the FIFO.
3.7
Host Controller Interfaces
The FlexRay communication controller can be connected and controlled by two types of microcontrollers through the CC MCU interface. Two pins, IF_SEL0 and IF_SEL1, configure the interface for the type of MCU. The MCU type is selected by IF_SEL0 and IF_SEL1 inputs as shown in Table 3-19.
Table 3-19. FlexRay CC MCU Interface Configuration
Mode Unsupported HCS12 AMI Unsupported IF_SEL0 0 0 1 1 IF_SEL1 0 1 0 1
When it leaves the hard reset state, the CC latches the values of the IF_SEL0 and IF_SEL1 signals and configures the interface for the type of MCU accordingly. The CC does not analyze IF_SEL0 and IF_SEL1 after it has left the hard reset state (see Section 3.9.1, "Hard Reset State"). NOTE If the CC senses the unsupported mode on its IF_SEL pins, it stops all internal operations, does not perform/respond on any host transactions, stays in the configuration mode, and does not integrate into the communication process. The following steps must be taken to select a correct MCU interface mode. 1. IF_SEL0, IF_SEL1 must be set to the AMI or HCS12 mode. 2. The hard reset signal of the CC must be asserted again.
3.7.1
MFR4200 Asynchronous Memory Interface
The MFR4200 asynchronous memory interface is shown in Figure 3-142. This interface has the following characteristics and features: * Data exchange in AMI mode is controlled by the CE#, WE# and OE# signals. * The MFR4200 AMI is implemented as an asynchronous memory slave module, thus enabling fast interfacing between the CC and a variety of microcontrollers. * The MFR4200 AMI decodes its internal registers addresses with the help of the chip select signal CE# and the address lines A[9:1]. NOTE The address space from 0x0400 to 0x1FFF is reserved. Reading this address space results in data 0x0000, while writing will not change the memory. Reading or writing this address space will set the ILLADR bit in CHIER.
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 189
MFR4200 FlexRay Communication Controller
*
* * * *
The AMI module accepts only 16-bit wide (word) transactions. It does not have byte select lines and, thus, does not recognize 8-bit wide accesses. Therefore, it does not indicate errors in the event of 8-bit transactions. The WE# signal indicates the direction of data transfer for a transaction. The OE# signal enables the AMI data output to a microcontroller during read transactions. INT_CC# is an interrupt line that can be used for requesting, by means of the internal interrupt controller, a service routine from a host controller. The MFR4200 AMI module does not support burst transactions.
Microcontroller MPC5xx
D0 ... D15 A22 ... A30 ... ... ... ... D15 ... D0 A9 ... A1
MFR4200
WE# CSn# OE# VDDIO IRQn# VDDIO To the PHY To the PHY
WE# CE# OE#
INT_CC#
IF_SEL0/BGT/DBGT IF_SEL1/TXD_BG1/TXD_485
Figure 3-142. Connecting MFR4200 to MPC5xx Using the AMI (Example)
MFR4200 Data Sheet, Rev. 0 190 Freescale Semiconductor
Host Controller Interfaces
Microcontroller MAC71xx
D15 ... D0 A9 ... A1
...
...
D15 ... D0 A9 ... A1
MFR4200
...
...
RD/WR# CSn# OE# VDDIO IRQn# VDDIO To the PHY To the PHY
WE# CE# OE#
INT_CC#
IF_SEL0/BGT/DBGT IF_SEL1/TXD_BG1/TXD_485
Figure 3-143. Connecting MFR4200 to MAC71xx Using the AMI (Example)
Microcontroller DSP56F83x
D15 ... D0 A9 ... A1
...
...
D15 ... D0 A9 ... A0
MFR4200
...
...
WR# CSn# RD# VDDIO IRQn# VDDIO To the PHY To the PHY
WE# CE# OE#
INT_CC#
IF_SEL0/BGT/DBGT IF_SEL1/TXD_BG1/TXD_485
Figure 3-144. Connecting MFR4200 to DSP56F83x (Hawk) Using the AMI (Example)
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 191
MFR4200 FlexRay Communication Controller
3.7.1.1
AMI Interface Signals and Pins Description
Table 3-20. AMI Interface Signals and Pins Description
MCU External Bus and Memory Controller Pin Name I/O I/O* O O FlexRay CC MCU Interface Pin Name D[15:0] A[9:1] WE# I/O I/O I I Data Bus, D0 is the LSB of data Address Bus, A1 is the LSB of address Read/Write - Indicates the direction of the data transfer for a transaction. A logic one indicates a read from a slave device; a logic zero indicates a write to a slave device. Output Enable Signal, controls AMI data output during read transactions Interrupt Request (level sensitive) - One of the eight external lines that can request, by means of the internal interrupt controller, a service routine from the MPC555. Interface Select - FlexRay CC MCU interface configuration pins Chip Select/Chip Enable - These signal enable peripheral or memory devices at programmed addresses if defined appropriately in the memory controller.
Signal name
Function Description
D[15:0] A[9:1] RD/WR#
D[15:0] A[9:1] RD/WR#
OE# IRQn#
OE# IRQn#
O I
OE# INT_CC#
I O
IF_SEL[0:1] CSn#
- CSn#
- O
IF_SEL[0:1] CE#
I I
Where: I - input pin; O - output pin; I/O - input/output pin
3.7.2
MFR4200 HCS12 Interface
The MFR4200 HCS12 interface with HCS12 EBI paged mode support is shown in Figure 3-145. The FlexRay CC to HCS12 connection with HCS12 EBI unpaged mode support is shown in Figure 3-146. * The MFR4200 HCS12 interface supports the paged and unpaged modes of the HCS12 external bus interface connected to it. * The MFR4200 HCS12 interface is implemented as a synchronous HCS12 external bus slave module, thus enabling fast data exchange between them. * The MFR4200 HCS12 interface decodes addresses of read/write transactions to its internal registers and generates its internal CS signal with the use of the address/data lines PAD[0:15], ACS[0:5] and XADDR[14:19] (see Figure 3-147). -- The address and data lines PAD[0:15] are multiplexed. They are denoted ADR[0:15] when referring to the address and DATA[0:15] when referring to the data. The MFR4200 is selected only when the address ADR[10:15] matches ACS[0:5] (ADR[10] matches ACS[0], ADR[11] matches ACS[1], etc.), and the address XADDR[14:19] matches 0.
MFR4200 Data Sheet, Rev. 0 192 Freescale Semiconductor
Host Controller Interfaces
*
* *
The HCS12 interface module accepts only aligned 16-bit wide read/write and 8-bit wide read transactions. The FlexRay CC module does not support 8-bit wide write accesses. The error indication bit ILLADR (illegal address) is raised in the CHIER (see Section 3.2.3.6.3, "CHI Error Register (CHIER)") in the event of an 8 bit write transaction, or if an unaligned half word transaction is performed (detected if ADR[0] is equal to 1 or if LSTRB is equal to 1). Data 0x0000 is presented to the host in this case. the RW_CC# signal indicates the direction of data transfer for a transaction. INT_CC# is an interrupt line that can be used for requesting, by means of the internal interrupt controller, a service routine from the HCS12 device.
HCS12
ADDR/DATA0 ... ADDR/DATA15 VDDIO PAD0 ... PAD15 ACS5 ACS4 VDDIO ACS3 ... VDDIO ... ... ACS0
MFR4200
...
...
ECLK R/W# LSTRB XADDR14 ... XADDR19
ECLK_CC RW_CC# LSTRB XADDR14 ... XADDR19
...
...
EBI
VDDIO IRQn# VDDIO To the PHY To the PHY IF_SEL1/TXD_BG1/TXD_485 IF_SEL0/BGT/DBGT INT_CC#
Figure 3-145. FlexRay CC to HCS12 Device Connection with HCS12 EBI Paged Mode Support
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 193
MFR4200 FlexRay Communication Controller
HCS12
ADDR/DATA0 ... ADDR/DATA15
...
...
PAD0 ... PAD15
MFR4200
VDDIO
ACS5 ... ... ... ACS0
VDDIO
ECLK R/W# LSTRB 6
ECLK_CC RW_CC# LSTRB XADDR[14:19]
EBI
VDDIO IRQn# VDDIO To the PHY To the PHY IF_SEL1/TXD_BG1/TXD_485 IF_SEL0/BGT/DBGT INT_CC#
Figure 3-146. FlexRay CC to HCS12 Device Connection with HCS12 EBI Unpaged Mode Support
MFR4200 Data Sheet, Rev. 0 194 Freescale Semiconductor
Host Controller Interfaces
PAD[0..15]
16 bit
Address /Data Demulti plexer
16 bit
DATA[0..15] DATA SIGNALS ADR[0..15] ADDRESS SIGNALS
16 bit
16 bit 6 bit
10 bit
ADR[0..9] ADDRESS SIGNALS
ADR[10..15] 6 bit
Address Comparator1 & Address Comparator2
1
ACS[0..5]
ACS[0..5] 6 bit 2 bit
CS
XADDR[14..19]
XADDR[14..19]
6 bit "000000"
6 bit
"1" ADR[14..15] 2 bit "01"
2 bit
0
C
Address Comparator3
HCS12 Interface of the CC
Figure 3-147. HCS12 interface Address Decoding and Internal CS Signal Generation
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 195
MFR4200 FlexRay Communication Controller
3.7.2.1
HCS12 Interface Signal and Pin Descriptions
Table 3-21. HCS12 Interface Signal and Pin Descriptions
HCS12 External Bus FlexRay CC MCU Interface Pin Name PAD[0:15] ECLK_CC# XADDR[14:19] I/O
1
Signal name Name AD[0:15] ECLK# XADDR[14:19] ADDR/DATA[0:15] ECLK# XADDR[14:19] I/O I/O* O O
Function Description
I/O I I
Multiplexed external address data bus (AD0 is the LSB; AD15 is the MSB) Internal bus clock output - This output line is the clock system frequency of the HCS12 HCS12 interface expanded address lines - (XADDR14 is the LSB of the HCS12 interface expanded address lines) HCS12 interface, address select inputs. ACS5: MSB of the address select inputs Read/Write - Indicates the direction of the data transfer for a transaction. A logic one indicates a read from a slave device; a logic zero indicates a write to a slave device. Low-byte Strobe - indicates the type of bus access Interrupt Request (level sensitive) - One of the external lines that can request, by means of the internal interrupt controller, a service routine from the HCS12. Interface Select - FlexRay CC MCU interface configuration pins
ACS[0:5] RD/WR#
- RD/WR#
- O
ACS[0:5] RW_CC#
I I
LSTRB# IRQ#
LSTRB# IRQ#
O I
LSTRB# INT_CC#
I O
IF_SEL[0:1]
1
-
-
IF_SEL[0:1]
I
I - input pin; O - output pin; I/O - input/output pin
MFR4200 Data Sheet, Rev. 0 196 Freescale Semiconductor
External 4/10 MHz Output Clock
3.8
External 4/10 MHz Output Clock
A continuous external 4/10 MHz output clock signal is provided by the CC on the CLKOUT pin. This signal is always active after power-up of the CC in all CC states including the hard reset state. The CLKOUT signal is disabled during the internal power-on and low voltage reset procedures (refer to Chapter 5, "Clocks and Reset Generator" for more information). The output frequency of the CLKOUT signal is selected by the CLK_S0, CLK_S1 input pins, in accordance with Table 3-22.
Table 3-22. CLKOUT Frequency Selection
Pin CLKOUT Function CLK_S0 0 1 0 1 CLK_S1 0 0 1 1 4 MHz output 10 MHz output 40 MHz output Disabled (CLKOUT output is "0")
NOTE For information on CLKOUT stabilization timing parameters, refer to Appendix A, "Electrical Characteristics".
3.9
3.9.1
Communication Controller States
Hard Reset State
Protocol Operation Control: Initiate hardware state. During this state, the CC initializes all internal registers to their specified hard reset default state (see Section 3.2.2, "Register Map Summary"). In the hard reset state: * All the operation with protocol state machine are stopped. * There is no transmission or reception on the FlexRay bus. * There is no clock synchronization running. * The CC host interface is stopped. * The CC analyzes the input signals on the two pins IF_SEL0 and IF_SEL1 while leaving the hard reset state to configure the interface for the type of MCU (see Section 3.7, "Host Controller Interfaces"). The CC enters the hard reset state: * According to the state of the hard reset pin (see Section 5.2.2, "Reset Generation and CLKOUT Control").
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 197
MFR4200 FlexRay Communication Controller
NOTE In the hard reset state, the host MCU type is not defined. If the host accesses the CC during this state, the CC can enter into an unpredictable state. Therefore, the host is prohibited from performing any accesses to the CC when the CC is in the hard reset state. Initialization of the CC is done on leaving the hard reset state, i.e. on a rising edge of the hard reset signal (see Section 3.2.3.1.3, "Magic Number Register (MNR)"). After leaving the hard reset state, the host must wait until initialization is complete, before reading or writing to the controller. During this internal initialization procedure, the CC initializes its internal memory including following configuration/control parameters of its message buffers. * Frame ID = 0x0 * CCFnR: Cycle Count Mask and Cycle Counter Value fields = 0 * BUFCSnR: -- BUFCMT = 0 -- ChA, ChB = 0 -- BT= 0 -- CCFE = 0 -- TT = 0 -- LOCK = 0 -- IFLG = 0 -- VALID = 0 -- IENA = 0 -- CFG = 0 -- DATAUPD = 0 During the internal initialization procedure the host must not access any of the CC registers except MNR (see Section 3.2.3.1.3, "Magic Number Register (MNR)), which acknowledges the end of the internal initialization procedure. The CC exits the hard reset state and enters the configuration state, after the hard reset signal is negated (see Section 3.2.3.2.1, "Module Configuration Register 0 (MCR0)").
MFR4200 Data Sheet, Rev. 0 198 Freescale Semiconductor
Communication Controller States
3.9.2
Configuration State
Protocol Operation Control: Config state. During this state, the host configures the CC in accordance with the access scheme for CC internal resources (see Section , "Receive, receive FIFO, and transmit message buffers are accessible to the host MCU only through the active receive, active transmit, and active receive FIFO buffers.") and the configuration principles (see Section 3.5, "Message Buffer Handling and Operations"). In the configuration state: * All operations with the protocol state machine are stopped. * There is no transmission or reception on the FlexRay bus. * There is no clock synchronization running. * The host interface of the CC is operational. * The host type is fixed after the hard reset state. * All message buffers, after entering the configuration state from the hard reset state, are "not used" buffers. The CC stores its configuration if it enters the configuration state from a state other than the hard reset state. * If the host puts the CC into the configuration state by setting the CONFIG bit in MCR0 register to `1' (see Section 3.2.3.2.1, "Module Configuration Register 0 (MCR0)"), the CC configuration data will be held, except data that is initialized when leaving the configuration state. On leaving the configuration state, some registers are cleared by the CC (this operation is highlighted in descriptions of those registers). The CC enters the configuration state: * By leaving the hard reset state. * According to the state of the CONFIG bit in the MCR0 register (see Section 3.2.3.2.1, "Module Configuration Register 0 (MCR0)"). * By leaving the sleep state or the diagnosis stop states. NOTE The CC enters the configuration state immediately the MCR0 CONFIG bit is set. This may cause a protocol violation; the user must take care to ensure that entry to the configuration state does not cause a protocol violation. The CC exits from the configuration state and enters the normal state of operation (see Section 3.9.4, "Normal Active State"). Figure 3-148 represents a timing diagram of the transition from the configuration state to the normal state.
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 199
MFR4200 FlexRay Communication Controller
CC is in the Configuration State
The host has written `0' to the MCR0 bit in CONFIG, requesting the CC to leave the Configuration State
Delay configured by the DCR in microticks
CC starts entering the Normal State
Configuration State
1001 microseconds
Programmed Delay
Startup
4000 microticks delay Time
Note: 1 For a 40.000 MHz crystal connected to EXTAL/XTAL pins, or for 40.000 MHz CC_CLK input clock.
Figure 3-148. Timing Diagram of CC State Transition from Configuration State to Normal State
3.9.3
Diagnosis Stop State
Protocol Operation Control: Freeze state. The diagnosis stop state is intended to support the user during host software off-line system diagnosis. It allows: * the user to stop all protocol engine operations (frame transmission, reception, clock synchronization, etc.) except host interface operations, * the host to read all host interface registers. In the diagnosis stop state: * All operations of the protocol state machine are stopped. * There is no transmission and no reception on the FlexRay bus. * There is no clock synchronization running. * The host interface is operational. * All registers have the same access scheme as they have in normal operation (see Table 3-16); The CC enters the diagnosis stop state from the normal state of operation: * If the host sets the DIAGSTOP bit in the MCR0 register (see Section 3.2.3.2.1, "Module Configuration Register 0 (MCR0)").
MFR4200 Data Sheet, Rev. 0 200 Freescale Semiconductor
Communication Controller States
NOTE The CC enters the diagnosis stop state immediately the DIAGSTOP bit is set. This may cause a protocol violation; the user must ensure that entry to the diagnosis stop state does not cause a protocol violation. The CC exits from the diagnosis stop state and enters the configuration state (see Section 3.9.2, "Configuration State").
3.9.4
Normal Active State
Protocol Operation Control: Normal active state. In the normal state, the CC supports regular communication functions -- frame transmission, reception, clock synchronization, host interface operations, etc. In the normal state: * * * * The CC performs transmission and reception on the FlexRay bus, if configured. Clock synchronization runs. The host interface is operational. All registers comply with the access scheme shown in Table 3-16.
The CC enters the normal state from the configuration state: * If the host clears the CONFIG bit in the MCR0 register to `0' (see Section 3.2.3.2.1, "Module Configuration Register 0 (MCR0)"). The CC exits the normal state and enters: * The configuration state, according to the state of the CONFIG bit in the MCR0 register * The diagnosis stop state, according to the state of the DIAGSTOP bit in the MCR0 register. * The debug state, according to the state of the DBG bit in the MCR0 register. * The listen only state, according to the state of the LO bit in the MCR0 register. * The listen only state, to deal with errors caused by clock synchronization failure (for more detailed information, refer to the PWD: Clock Synchronization chapter). * The sleep state, according to the state of the SLPRQ and SLPACK bits in the MCR0 register. For the description of the SLPRQ, SLPACK, CONFIG, DIAGSTOP, DBG and LO bits, see Section 3.2.3.2.1, "Module Configuration Register 0 (MCR0)". NOTE For a detailed description of the normal state, refer to the PWD: HW States and Operation Modes chapter.
3.9.5
Normal Passive State
Protocol Operation Control: Normal passive state.
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 201
MFR4200 FlexRay Communication Controller
In the normal passive state, the CC supports regular communication functions (reception, clock synchronization, host interface operations, etc.), except frame transmission. In the normal passive state: * The CC receives frames on the FlexRay bus, if configured. * The CC does not transmit any frames on the FlexRay bus. * Clock synchronization runs. * The host interface is operational. * All registers comply with the access scheme shown in Table 3-16. The CC enters the normal passive state from the normal mode of operation: * From the normal active state, if the clock synchronization failed (for more detailed information, refer to the PWD: Clock Synchronization chapter) NOTE The CC enters the normal passive state at the end of the current communication cycle. The CC exits the normal passive state and enters: * The configuration state, according to the state of the CONFIG bit in the MCR0 register; * The diagnosis stop state, according to the state of the DIAGSTOP bit in the MCR0 register; * The debug state, according to the state of the DBG bit in the MCR0 register; * The sleep state, according to the state of the SLPRQ and SLPACK bits in the MCR0 register; (see Section 3.2.3.2.1, "Module Configuration Register 0 (MCR0)"). NOTE For a detailed description of the listen state, refer to the PWD: HW States and Operation Modes chapter.
3.10
3.10.1
Debug Port
Debug Port Overview
The debug port is provided by means of two MFR4200 pins -- BGT/DBG2/IF_SEL0 and ARM/DBG1/CLK_S0. The debug port control register (see Section 3.2.3.3.33, "Debug Port Control Register (DBPCR)") selects the output functions for these two pins. The functions are controlled independently of each other and, therefore, the same or different output functions may be configured for the BGT/DBG2/IF_SEL0 and ARM/DBG1/CLK_S0 pins. NOTE As the DBG1 and DBG2 signals are shared with the bus guardian output signals on the BGT/DBG2/IF_SEL0 and ARM/DBG1/CLK pins, the debug port pins are not accessible in applications where bus guardian devices are connected to the MFR4200.
MFR4200 Data Sheet, Rev. 0 202 Freescale Semiconductor
Debug Port
3.10.2
Debug Port Functions
Table 3-23. Debug Port Functions Description
Function Short Name PCS Indicated by Rising edge of the signal Description The CC strobes every protocol state change (see Section 3.2.3.4.1, "Protocol State Register (PSR)"). The CC strobes every static slot start. The CC strobes every minislot start. This function outputs data received on channel A RxD (RXD_BG1/RXD1_485 pin) after glitch filter processing. The CC strobes every dynamic slot start on channel A. The CC strobes every receive frame start on channel A. The CC indicates every reception of a syntactically correct and semantically valid frame on channel A after 11 FlexRay bus bits, measured from the received frame end sequence.
Table 3-23 describes all debug port functions.
Protocol state change
Slot start in static segment Minislot start RxD after glitch filter on channel A Dynamic slot start on channel A Start of frame on channel A Received syntactically correct an semantically valid frame indication on channel A
SSS MSS RAGFA
Rising edge of the signal Rising edge of the signal --
DSSA SFA RCFA
Rising edge of the signal Rising edge of the signal Rising edge of the signal
Start of a communication cycle
SCC
Rising edge of the signal and its The CC strobes every communication cycle level start with a rising edge. This signal stays high during the communication cycle and the CC negates it (low) with the NIT start. Rising edge of the signal Rising edge of the signal -- This function outputs the CC internal corrected macrotick. The CC strobes the time point during the NIT when it performs the offset correction. This function outputs data received on channel B RxD (RXD_BG2/RXD2_485 pin) after glitch filter processing. The CC strobes every dynamic slot start on channel B. The CC strobes every receive frame start on channel B. The CC indicates every reception of a syntactically correct and semantically valid frame on channel B after 11 FlexRay bus bits measured from the received frame end sequence.
Macrotick Start of offset correction RxD after glitch filter on channel B Dynamic slot start on channel B Start of frame on channel B Received syntactically correct an semantically valid frame indication on channel B
MTS SOC RAGFB
DSSB SFB RCFB
Rising edge of the signal Rising edge of the signal Rising edge of the signal
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 203
MFR4200 FlexRay Communication Controller
3.10.3
Debug Port Function Timing
Figure 3-149 depicts a timing diagram for the start of communication cycle function and the start of offset correction function, in relation to the communication cycle timing.
Communication cycle Start of communication cycle Start of offset correction
Figure 3-149. Start of Communication Cycle and Start of Offset Correction Functions Timing
NIT
Static Segment
Dynamic Segement
Symbol Window
NIT
Static Segment
The following debug functions indicate certain events with the rising edge and stay high for three clock cycles of the EXTAL or CC_CLK clock (see Figure 3-150). * Protocol state change * Minislot start * RxD after glitch filter on channel A * Dynamic slot start on channel A * Start of frame on channel A * Indication of syntactically correct and semantically valid frame received on channel A * Macrotick * RxD after glitch filter on channel B * Dynamic slot start on channel B * Start of frame on channel B * Indication of syntactically correct and semantically valid frame received on channel B
EXTAL or CC_CLK
Debug port signal
Figure 3-150. Timing for Debug Functions with Three EXTAL or CC_CLK Clock Cycles of High State (Logic "1")
MFR4200 Data Sheet, Rev. 0 204 Freescale Semiconductor
Debug Port
The slot start in static segment debug function indicates every slot start event in the static segment with a rising edge that stays high for one clock cycle of the EXTAL or CC_CLK clock (see Figure 3-151):
EXTAL or CC_CLK
Debug port signal
Figure 3-151. Slot Start in Static Segment Function Timing
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 205
MFR4200 FlexRay Communication Controller
MFR4200 Data Sheet, Rev. 0 206 Freescale Semiconductor
Chapter 4 Dual Output Voltage Regulator (VREG3V3V2)
4.1 Introduction
The VREG3V3V2 is a dual output voltage regulator providing two separate 2.5 V (typical) supplies differing in the amount of current that can be sourced. The regulator input voltage range is from 3.3 V up to 5 V (typical).
4.1.1
Features
The block VREG3V3V2 includes these distinctive features: * Two parallel, linear voltage regulators -- Bandgap reference * Power-on reset (POR) * Low-voltage reset (LVR)
4.1.2
Modes of Operation
VREG3V3V2 can operate in two modes on MFR4200: * Full-performance mode (FPM) The regulator is active, providing the nominal supply voltage of 2.5 V with full current sourcing capability at both outputs. Features LVR (low-voltage reset) and POR (power-on reset) are available. * Shutdown mode Controlled by VREGEN (see device overview chapter for connectivity of VREGEN). This mode is characterized by minimum power consumption. The regulator outputs are in a high impedance state; only the POR feature is available, and LVR is disabled. This mode must be used to disable the chip internal regulator VREG3V3V2, i.e., to bypass the VREG3V3V2 to use external supplies.
4.1.3
Block Diagram
Figure 4-1 shows the function principle of VREG3V3V2 by means of a block diagram. The regulator core REG consists of two parallel sub-blocks, REG1 and REG2, providing two independent output voltages.
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 207
Dual Output Voltage Regulator (VREG3V3V2)
VDDR VDDA VSSA REG VSSR
REG2
VDDOSC VSSOSC
REG1
VDD
LVR
LVR
POR
POR
VSS
VREGEN
CTRL REG: Regulator Core CTRL: Regulator Control LVR: Low Voltage Reset POR: Power-on Reset PIN
Figure 4-1. VREG3V3 Block Diagram
MFR4200 Data Sheet, Rev. 0 208 Freescale Semiconductor
Dual Output Voltage Regulator (VREG3V3V2)
4.2
External Signal Description
Due to the nature of VREG3V3V2 being a voltage regulator providing the chip internal power supply voltages most signals are power supply signals connected to pads. Table 4-1 shows all signals of VREG3V3V2 associated with pins.
Table 4-1. VREG3V3V2 -- Signal Properties
Name VDDR VSSR VDDA VSSA VDD VSS VDDOSC VSSOSC VREGEN (optional) Port -- -- -- -- -- -- -- -- -- Function VREG3V3V2 power input (positive supply) VREG3V3V2 power input (ground) VREG3V3V2 quiet input (positive supply) VREG3V3V2 quiet input (ground) VREG3V3V2 primary output (positive supply) VREG3V3V2 primary output (ground) VREG3V3V2 secondary output (positive supply) VREG3V3V2 secondary output (ground) VREG3V3V2 (Optional) Regulator Enable Reset State -- -- -- -- -- -- -- -- -- Pull Up -- -- -- -- -- -- -- -- --
NOTE Check device overview chapter for connectivity of the signals.
4.2.1
VDDR, VSSR -- Regulator Power Input
Signal VDDR is the power input of VREG3V3V2. All currents sourced into the regulator loads flow through this pin. A chip external decoupling capacitor (100 nF...220 nF, X7R ceramic) between VDDR and VSSR can smoothen ripple on VDDR. For entering shutdown mode, pin VDDR must also be tied to ground on devices without a VREGEN pin.
4.2.2
VDDA, VSSA -- Regulator Reference Supply
Signals VDDA/VSSA which are supposed to be relatively quiet are used to supply the analog parts of the regulator. Internal precision reference circuits are supplied from these signals. A chip external decoupling capacitor (100 nF...220 nF, X7R ceramic) between VDDA and VSSA can further improve the quality of this supply.
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 209
Dual Output Voltage Regulator (VREG3V3V2)
4.2.3
VDD, VSS -- Regulator Output1 (Core Logic)
Signals VDD/VSS are the primary outputs of VREG3V3V2 that provide the power supply for the core logic. These signals are connected to device pins to allow external decoupling capacitors (100 nF...220 nF, X7R ceramic). In shutdown mode an external supply at VDD/VSS can replace the voltage regulator.
4.2.4
VDDOSC, VSSOSC -- Regulator Output2 (OSC)
Signals VDDOSC/VSSOSC are the secondary outputs of VREG3V3V2 that provide the power supply for the oscillator. These signals are connected to device pins to allow external decoupling capacitors (100 nF...220 nF, X7R ceramic). In shutdown mode an external supply at VDDOSC/VSSOSC can replace the voltage regulator.
4.2.5
VREGEN -- Optional Regulator Enable
This optional signal is used to shutdown VREG3V3V2. In that case VDD/VSS and VDDOSC/VSSOSC must be provided externally. shutdown mode is entered with VREGEN being low. If VREGEN is high, the VREG3V3V2 is in reduced-power mode. For the connectivity of VREGEN see device overview chapter. NOTE Switching from FPM or RPM to shutdown of VREG3V3V2 and vice versa is not supported while the CC is powered.
4.3
Functional Description
Block VREG3V3V2 is a voltage regulator as depicted in Figure 4-1. The regulator functional elements are the regulator core (REG), a power-on reset module (POR) and a low-voltage reset module (LVR). There is also the regulator control block (CTRL) which manages the operating modes of VREG3V3V2.
4.3.1
REG -- Regulator Core
VREG3V3V2, respectively its regulator core has two parallel, independent regulation loops (REG1 and REG2) that differ only in the amount of current that can be sourced to the connected loads. Therefore, only REG1 providing the supply at VDD/VSS is explained. The principle is also valid for REG2. The regulator is a linear series regulator with a bandgap reference in its full-performance mode and a voltage clamp in reduced-power mode. All load currents flow from input VDDR to VSS or VSSOSC, the reference circuits are connected to VDDA and VSSA.
4.3.2
Full-performance Mode
In full-performance mode, a fraction of the output voltage (VDD) and the bandgap reference voltage are fed to an operational amplifier. The amplified input voltage difference controls the gate of an output driver.
MFR4200 Data Sheet, Rev. 0 210 Freescale Semiconductor
Dual Output Voltage Regulator (VREG3V3V2)
4.3.3
POR -- Power On Reset
This functional block monitors output VDD. If VDD is below VPORD, signal POR is high; if it exceeds VPORD, the signal goes low. The transition to low forces the CPU into the power-on sequence. Due to its role during chip power-up, this module must be active in all operating modes of VREG3V3V2.
4.3.4
LVR -- Low Voltage Reset
Block LVR monitors the primary output voltage VDD. If it drops below the assertion level (VLVRA) signal LVR asserts and when rising above the deassertion level (VLVRD) signal LVR negates again. The LVR function is available only in full-performance mode.
4.3.5
CTRL -- Regulator Control
This part contains digital functionality needed to control the operating modes.
4.4
Resets
This subsection describes how VREG3V3V2 controls the reset of the CC. The reset values of registers and signals are provided in Section 3.2, "Memory Map and Registers". Possible reset sources are listed in Table 4-2.
Table 4-2. VREG3V3V2 -- Reset Sources
Reset Source Power-on reset Low-voltage reset Always active Always active Local Enable
4.4.1
Power On Reset
During chip power-up the digital core may not work if its supply voltage VDD is below the POR deassertion level (VPORD). Therefore, signal POR, which forces the other blocks of the device into reset, is kept high until VDD exceeds VPORD. Then POR becomes low and the reset generator of the device continues the start-up sequence.
4.4.2
Low Voltage Reset
For information on low-voltage reset see Section 4.3.4, "LVR -- Low Voltage Reset".
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 211
Dual Output Voltage Regulator (VREG3V3V2)
MFR4200 Data Sheet, Rev. 0 212 Freescale Semiconductor
Chapter 5 Clocks and Reset Generator
5.1 Introduction
This document describes the CRG operation in functional mode and only those aspects of it useful to the end user.
5.1.1
Features
The main features of this block are: * System clock generator depending on the mode: functional, scan or memory BIST mode. * System reset generation from the following possible events: -- Power-on -- Low voltage -- External pin reset * Reset control signal generation for the FlexRay module's CLKOUT generator.
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 213
Clocks and Reset Generator
5.2
5.2.1
Pin N 1 16 24 25 32 41 47 48 52 63
1
Functional Description
MFR4200 Pins Relevant to the CRG
Table 5-1. MFR4200 Pins Relevant to the CRG
Pin Name TEST RESET# EXTAL/CC_CLK XTAL BGT/DBG2/IF_SEL0 TXD_BG1/TXD1_485/ IF_SEL1 ARM/DBG1/CLK_S0 MT/CLK_S1 ECLK_CC CLKOUT In/Out I I I I I/O I/O I/O I/O I I/O Pin type1 DC/PD DC/PD DC/PD DC/PD PC DC Functional Description This pin must be tied to logic `0'. Hardware reset input Crystal driver / External clock pin Crystal driver pin Bus guardian tick / Debug strobe point signal 2 / Host interface selection 0 PHY data transmitter output / RS485 data transmitter output / Host interface selection 1 Bus guardian ARM signal / Debug strobe point signal 1 / Controller clock output select signal 0 Bus guardian macrotick / Controller clock output select signal 1 HCS12 clock input CLKOUT output, selectable as disabled or 4/10/40 MHz.
PC (Pullup/down Controlled) - Register controlled internal weak pull up/down for a pin in the input mode. PD (Pull Down) - Internal weak pull down for a pin in the input mode. DC (Drive strength Controlled) - Register controlled drive strength for a pin in the output mode. Z - Three-stated pin. OD (Open Drain) - Output pin with open drain. Reset state: - All pins with the PC option have pullup/down resistors disabled. - All pins with the DC option have full drive strength.
5.2.2
Reset Generation and CLKOUT Control
The CRG will provide a system reset on any of the following events: power-on, low voltage, or low level detected at the RESET# pin. Entry into reset is asynchronous and does not require a clock; however, the MFR4200 cannot sequence out of reset in functional mode without a system clock. The CRG scans, during different periods depending on the origin of the reset source, the interface and CLKOUT selector pins: IF_SEL[0:1] and CLK_S[0:1].
MFR4200 Data Sheet, Rev. 0 214 Freescale Semiconductor
Functional Description
NOTE See Section 3.7, "Host Controller Interfaces" and Section 3.8, "External 4/10 MHz Output Clock" for a description of the encoding of these pins.
5.2.2.1
Power-on or Low Voltage Reset
When the power-on or low voltage reset signals are asserted, the CRG sets the internal reset signal. The CRG will negate synchronously the internal reset signal, approximately 16000 EXTAL/CC_CLK clock ticks after the negation of the power-on or low-voltage reset signals. While the internal reset signal is asserted due to a power-on or low-voltage situation, the pins CLK_S[0:1] and IF_SEL[0:1] are latched and the CLKOUT is disabled. After the CRG negates the internal reset signal the FlexRay core will: 1. generate CLKOUT signal with frequency indicated by the values latched in CLK_S[0:1], 2. select the required host interface with the last value latched in IF_SEL[0:1] signals.
VDD VDD
power_on reset power_on reset internal_reset internal_reset
~16000 ~16000
latchingwindow latching window
CLK_Sx -IF_SELx CLK_Sx - IF_SELx
CLKOUT CLKOUT Figure 5-1. Power-on Reset
low_voltage low_voltage
internal_reset internal_reset ~16000 ~ 16000 latching window latching
CLK_Sx-- IF_SELx CLK_Sx IF_SELx CLKOUT CLKOUT
low_level_voltage
Figure 5-2. Low Voltage Reset
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 215
Clocks and Reset Generator
5.2.2.2
External Reset
When the RESET# pin is asserted the CRG sets the internal reset signal. The CRG will negate the internal reset signal approximately 16 EXTAL/CC_CLK clock ticks after the de-assertion of RESET#. While the internal reset signal is asserted due to an external reset, the pins CLK_S[0:1] and IF_SEL[0:1] are latched but the CLKOUT signal is still be generated. Figure 5-3 shows an external reset sequence.
RESET# RESET# RESET internal_reset internal_reset
latching latching window ~ 16 ~16
CLK_Sx-- IF_SELx CLK_Sx IF_SELx
CLKOUT CLKOUT Figure 5-3. External Reset
MFR4200 Data Sheet, Rev. 0 216 Freescale Semiconductor
Chapter 6 Oscillator (OSCV2)
6.1 Introduction
The OSCV2 module provides one oscillator concept: * A robust full swing Pierce oscillator with the possibility to feed in an external square wave
6.1.1
Features
The Pierce OSC option provides the following features: * Wider high frequency operation range * No DC voltage applied across the crystal * Full rail-to-rail (2.5 V nominal) swing oscillation with low EM susceptibility * Fast startup Common features: * Operation from the VDDOSC 2.5 V (nominal) supply rail
6.1.2
Modes of Operation
One mode of operation exists: * Full swing Pierce oscillator mode, which can also be used to feed in an externally generated square wave suitable for high frequency operation and harsh environments
6.2
External Signal Description
This section lists and describes the signals that connect off chip.
6.2.1
VDDOSC and VSSOSC -- OSC Operating Voltage, OSC Ground
These pins provide the operating voltage (VDDOSC) and ground (VSSOSC) for the OSCV2 circuitry. This allows the supply voltage to the OSCV2 to be independently bypassed.
6.2.2
EXTAL and XTAL -- Clock/Crystal Source Pins
These pins provide the interface for either a crystal or a CMOS compatible clock to control the internal clock generator circuitry. EXTAL is the external clock input or the input to the crystal oscillator amplifier. XTAL is the output of the crystal oscillator amplifier. All the CC internal system clocks are derived from
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 217
Oscillator (OSCV2)
the EXTAL input frequency. In full stop mode (PSTP = 0) the EXTAL pin is pulled down by an internal resistor of typical 200 k. NOTE Freescale Semiconductor recommends an evaluation of the application board and chosen resonator or crystal by the resonator or crystal supplier. The Crystal circuit is changed from standard. The Pierce circuit is not suited for overtone resonators and crystals without a careful component selection. For more information on EXTAL and XTAL, see Section 2.2.3.22, "XTAL -- Crystal Driver Pin".
6.3
Functional Description
The OSCV2 block has two external pins, EXTAL and XTAL. The oscillator input pin, EXTAL, is intended to be connected to either a crystal or an external clock source. A buffered EXTAL signal, OSCCLK, becomes the internal reference clock. To improve noise immunity, the oscillator is powered by the VDDOSC and VSSOSC power supply pins.
MFR4200 Data Sheet, Rev. 0 218 Freescale Semiconductor
Appendix A Electrical Characteristics
A.1 General
NOTE The electrical characteristics given in this appendix are preliminary and must be used as a guide only. Values cannot be guaranteed by Freescale and are subject to change without notice. NOTE The part is specified and tested over the 5 V and 3.3 V ranges. For the intermediate range, generally the electrical specifications for the 3.3 V range apply, but the part is not tested in production test in the intermediate range. This appendix provides the most accurate electrical information for the MFR4200 device available at the time of publication. This introduction is intended to give an overview on several common topics like power supply, current injection etc.
A.1.1
Parameter Classification
The electrical parameters shown in this supplement are guaranteed by various methods. The following classifications are used and the parameters are tagged accordingly in the column labeled "C" in the parameter tables, where appropriate. P: C: T: Parameters that are guaranteed during production testing on each individual device. Parameters that are achieved by the design characterization by measuring a statistically relevant sample size across process variations. Parameters that are achieved by design characterization on a small sample size from typical devices under typical conditions unless otherwise noted. All values shown in the typical column are within this category. Parameters that are derived mainly from simulations.
D:
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 219
Electrical Characteristics
A.1.2
Power Supply
The MFR4200 uses several pins to supply power to the I/O pins, oscillator and the digital core. The VDDA, VSSA pair supplies the internal voltage regulator. The VDDX, VSSX, VDDR and VSSR pairs supply the I/O pins, VDDR supplies also the internal voltage regulator. VDD2_5 and VSS2_5 are the supply pins for the digital logic, VDDOSC, VSSOSC supply the oscillator. VDDA, VDDX, VDDR as well as VSSA, VSSX, VSSR are connected by anti-parallel diodes for ESD protection. NOTE In the following context, VDD5 is used for either VDDA, VDDR and VDDX; VSS5 is used for either VSSA, VSSR and VSSX unless otherwise noted. IDD5 denotes the sum of the currents flowing into the VDDA, VDDX and VDDR pins. VDD is used for VDD2_5 and VDDOSC, VSS is used for VSS2_5 and VSSOSC. IDD is used for the current flowing into VDD2_5.
A.1.3
Pins
There are four groups of functional pins.
A.1.3.1
3.3V I/O pins
Those I/O pins have a nominal level of 3.3V. This class of pins is comprised of all I/O pins (all MFR4200 pins excluding EXTAL, XTAL and all power supply pins).The internal structure of all those pins is identical, however some of the functionality may be disabled. E.g. for the input-only pins the output drivers are disabled permanently.
A.1.3.2
Oscillator
The pins EXTAL, XTAL dedicated to the oscillator have a nominal 2.5V level. They are supplied by VDDOSC.
A.1.3.3
VDDR
This pin is used to enable the on chip voltage regulator.
MFR4200 Data Sheet, Rev. 0 220 Freescale Semiconductor
General
A.1.4
Current Injection
Power supply must maintain regulation within operating VDD5 or VDD range during instantaneous and operating maximum current conditions. If positive injection current (Vin > VDD5) is greater than IDD5, the injection current may flow out of VDD5 and could result in external power supply going out of regulation. Ensure external VDD5 load will shunt current greater than maximum injection current. This will be the greatest risk when the CC is not consuming power; e.g. if no system clock is present, or if clock rate is very low which would reduce overall power consumption.
A.1.5
Absolute Maximum Ratings
Absolute maximum ratings are stress ratings only. A functional operation under or outside those maxima is not guaranteed. Stress beyond those limits may affect the reliability or cause permanent damage of the device. This device contains circuitry protecting against damage due to high static voltage or electrical fields; however, it is advised that normal precautions be taken to avoid application of any voltages higher than maximum-rated voltages to this high-impedance circuit. Reliability of operation is enhanced if unused inputs are tied to an appropriate logic voltage level (e.g., either VSS5 or VDD5).
Table A-1. Absolute Maximum Ratings1
Num 1 2 3 4 5 6 7 8 9 10 11 12
1 2
Rating I/O, Regulator and Analog Supply Voltage Digital Logic Supply Voltage 2 Oscillator Supply Voltage
2
Symbol VDD5 VDD VDDOSC VDDX VSSX VIN VILV I
D
Min -0.3 -0.3 -0.3 -0.3 -0.3 -0.3 -0.3 -25 -25 -40 -40 - 65
Max 6.5 3.0 3.0 0.3 0.3 6.5 3.0 +25 +25 +125 +150 155
Unit V V V V V V V mA mA
oC oC
Voltage difference VDDX to VDDR and VDDA Voltage difference VSSX to VSSR and VSSA Digital I/O Input Voltage EXTAL, XTAL inputs Instantaneous Maximum Current Single pin limit for all digital I/O pins 3 Instantaneous Maximum Current Single pin limit for EXTAL, XTAL4 Operating Temperature Range (packaged) Operating Temperature Range (junction) Storage Temperature Range
IDL TA TJ Tstg
C
Beyond absolute maximum ratings device might be damaged. The device contains an internal voltage regulator to generate the logic and OSC supply out of the I/O supply. The absolute maximum ratings apply when the device is powered from an external source. 3 All digital I/O pins are internally clamped to V SSX and VDDX, VSSR and VDDR or VSSA and VDDA. 4 Those pins are internally clamped to V SSOSC and VDDOSC.
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 221
Electrical Characteristics
A.1.6
ESD Protection and Latch-up Immunity
All ESD testing is in conformity with CDF-AEC-Q100 Stress test qualification for Automotive Grade Integrated Circuits. During the device qualification ESD stresses were performed for the Human Body Model (HBM), the Machine Model (MM) and the Charge Device Model. A device will be defined as a failure if after exposure to ESD pulses the device no longer meets the device specification. Complete DC parametric and functional testing is performed per the applicable device specification at room temperature followed by hot temperature, unless specified otherwise in the device specification.
Table A-2. ESD and Latch-up Test Conditions
Model Human Body Series Resistance Storage Capacitance Number of Pulse per pin positive negative Machine Series Resistance Storage Capacitance Number of Pulse per pin positive negative Latch-up Minimum input voltage limit Maximum input voltage limit Description Symbol R1 C Value 1500 100 3 3 0 200 3 3 -2.5 7.5 V V Ohm pF Unit Ohm pF
R1 C -
-
Table A-3. ESD and Latch-up Protection Characteristics
Num C 1 2 3 4 Rating Symbol VHBM VMM VCDM ILAT +100 -100 ILAT +200 -200 mA Min 2000 200 500 Max Unit V V V mA
T Human Body Model (HBM) T Machine Model (MM) T Charge Device Model (CDM) T Latch-up Current at TA = 125C positive negative T Latch-up Current at TA = 27C positive negative
5
MFR4200 Data Sheet, Rev. 0 222 Freescale Semiconductor
General
A.1.7
Operating Conditions
This chapter describes the operating conditions of the device. Unless otherwise noted those conditions apply to all the following data. NOTE Refer to the temperature rating of the device (C, V, M) with regards to the ambient temperature TA and the junction temperature TJ. For power dissipation calculations refer to Section A.1.8, "Power Dissipation and Thermal Characteristics".
Table A-4. Operating Conditions
Rating Oscillator and Quartz frequency Quartz overtone Quartz frequency stability at TJ Voltage difference VDDX to VDDR and VDDA Voltage difference VSSX to VSSR and VSSA I/O, Regulator and Analog Supply Digital Logic Supply Voltage1 fSTB DVDDX DVSSX VDD5 VDD VDDOSC TJ TJ Symbol fOSC Min Typ 40.000 Max 40.000 Unit MHz
Fundamental Frequency -1500 -0.1 -0.1 2.97 2.25 2.25 -40 -40 300 0 0 3.3 2.5 2.5 27 1500 0.1 0.1 5.5 2.75 2.75 140 125 ppm V V V V V
oC oC
Oscillator Supply Voltage1 Operating Junction Temperature Range Operating Ambient Temperature Range2
1 2
The device contains an internal voltage regulator to generate the logic and OSC supply out of the I/O supply. Refer to Section A.1.8, "Power Dissipation and Thermal Characteristics" for more information about the relation between ambient temperature TA and device junction temperature TJ.
A.1.8
Power Dissipation and Thermal Characteristics
Power dissipation and thermal characteristics are closely related. The user must assure that the maximum operating junction temperature is not exceeded. The average chip-junction temperature (TJ) in C can be obtained from: T J = T A + ( P D * JA ) TJ = Junction Temperature [C] TA = Ambient Temperature [C] PD = Total Chip Power Dissipation [W] JA = Package Thermal Resistance [C/W] The total power dissipation can be calculated from:
Eqn. A-1
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 223
Electrical Characteristics
P D = P INT + P IO PINT = Chip Internal Power Dissipation [W] Two cases with internal voltage regulator enabled and disabled must be considered: 1. Internal Voltage Regulator disabled P INT = I DD V DD + I DDOSC V DDOSC + I DDA V DDA P IO =
Eqn. A-2
Eqn. A-3
i
R DSON I IO
2 i
Eqn. A-4
PIO is the sum of all output currents on I/O ports associated with VDDX and VDDR. For RDSON is valid: V OL R DSON = ----------- ; I OL respectively V DD5 - V OH R DSON = ----------------------------------- ; for outputs driven high I OH 2. Internal voltage regulator enabled P INT =I DDR V DDR +I DDA V DDA
Eqn. A-7
for outputs driven low
Eqn. A-5
Eqn. A-6
IDDR is the current shown in Table A-8 and not the overall current flowing into VDDR, which additionally contains the current flowing into the external loads with output high. P IO =
RDSON IIOi
i
2
Eqn. A-8
PIO is the sum of all output currents on I/O ports associated with VDDX and VDDR.
MFR4200 Data Sheet, Rev. 0 224 Freescale Semiconductor
General
Table A-5. Thermal Package Simulation Details
Num 1 2 3 4 5 6 7
1
Rating Junction to Ambient LQFP64, single sided PCB1,2, Natural Convection Junction to Ambient LQFP64, double sided PCB with 2 internal planes1,3, Natural Convection Junction to Ambient LQFP64 (@200 ft/min), single sided PCB1,3 Junction to Ambient LQFP64 (@200 ft/min), double sided PCB with 2 internal planes1,3 Junction to Board LQFP644 Junction to Case LQFP645 Junction to Package Top LQFP646, Natural Convection
Symbol RJA RJMA RJMA RJMA RJB RJC JT
Value 67 52 60 48 34 17 3
Unit
o o
C/W C/W C/W C/W C/W C/W C/W
o o
o o o
2 3 4 5 6
Junction temperature is a function of die size, on-chip power dissipation, package thermal resistance, mounting site (board) temperature, ambient temperature, air flow, power dissipation of other components on the board, and board thermal resistance. Per SEMI G38-87 and EIA/JEDEC Standard 51-2 with the single layer horizontal PC Board according to EIA/JEDEC Standard 51-3 Per EIA/JEDEC Standard 51-6 with the four layer horizontal PC Board (double-sided PCB with two internal planes) according to EIA/JEDEC Standard 51-7 Thermal resistance between the die and the printed circuit board per EIA/JEDEC Standard 51-8. Board temperature is measured on the top surface of the board near the package. Thermal resistance between the die and the case top surface as measured by the cold plate method (MIL SPEC-883 Method 1012.1). Thermal characterization parameter indicating the temperature difference between package top and the junction temperature per EIA/JEDEC Standard 51-2.
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 225
Electrical Characteristics
A.1.9
I/O Characteristics
This section describes the characteristics of all 3.3V I/O pins. All parameters are not always applicable, e.g. not all pins feature pullup/pulldown resistances.
Table A-6. 5V I/O Characteristics (VDD5 = 5V)
Conditions are shown in Figure A-4, unless otherwise noted.
Num 1 C P T 2 P T 3 4 5 6 7 8 9 10 11 12 13 14 C P P P P P P P P P d T Input High Voltage Input High Voltage Input Low Voltage Input Low Voltage Input Hysteresis High Impedance (Off-state) Leakage Current VIN=VDD or VSS, all input/output and output pins Output High Voltage (pins in output mode) @50% Partial Drive IOH = -2mA Output High Voltage (pins in output mode) @100% Full Drive IOH = -10mA Output Low Voltage (pins in output mode) @50% Partial Drive IOL = +2mA Output Low Voltage (pins in output mode) @100% Full Drive IOL = +10mA Internal Pullup Device Current, tested at VIL Max Internal Pullup Device Current, tested at VIH Min. Internal Pulldown Device Current, tested at VIH Min. Internal Pulldown Device Current, tested at VIL Max Input Capacitance (input, input/output pins) Injection Current1 Single Pin Limit Total Device Limit. Sum of all injected currents 15 P Load Capacitance 50% Partial Drive 100% Full Drive IICS IICP CL -2.5 -25 25 50 2.5 25 pF Rating Symbol VIH VIH VIL VIL VHYS IIN VOH VOH VOL VOL IPUL IPUH IPDH IPDL CIN Min 0.65*VDD5 VSS5-0.3 -2.5 VDD5-0.8 VDD5-0.8 -10 10 Typ 250 7 Max VDD5+0.3 0.35*VDD5 +2.5 0.8 0.8 -130 130 Unit V V V V mV uA V V V V uA uA uA uA pF mA
1
Refer to Section A.1.4, "Current Injection", for more information.
MFR4200 Data Sheet, Rev. 0 226 Freescale Semiconductor
General
Table A-7. 3.3V I/O Characteristics (VDD5 = 3.3V)
Conditions are VDDX=3.3V +/-10% Temperature from -40oC to +140oC, unless otherwise noted
Num 1 C P T 2 P T 3 4 5 6 7 8 9 10 11 12 13 14 C P P P P P P P P P D T Input High Voltage Input High Voltage Input Low Voltage Input Low Voltage Input Hysteresis High Impedance (Off-state) Leakage Current VIN=VDD or VSS, all input/output and output pins Output High Voltage (pins in output mode) @50% Partial Drive IOH = -0.75mA Output High Voltage (pins in output mode) @100% Full Drive IOH = -4.5mA Output Low Voltage (pins in output mode) @50% Partial Drive IOL = +0.9mA Output Low Voltage (pins in output mode) @100% Full Drive IOL = +5.5mA Internal Pullup Device Current, tested at VIL Max Internal Pullup Device Current, tested at VIH Min. Internal Pulldown Device Current, tested at VIH Min. Internal Pulldown Device Current, tested at VIL Max Input Capacitance (input, input/output pins) Injection Current1 Single Pin Limit Total Device Limit. Sum of all injected currents 15 P Load Capacitance 50% Partial Drive 100% Full Drive IICS IICP CL -2.5 -25 25 50 2.5 25 pF Rating Symbol VIH VIH VIL VIL VHYS IIN VOH VOH VOL VOL IPUL IPUH IPDH IPDL CIN Min 0.65*VDD5 VSS5-0.3 -2.5 VDD5-0.4 VDD5-0.4 -6 6 Typ 250 7 Max VDD5+0.3 0.35*VDD5 +2.5 0.4 0.4 -60 60 Unit V V V V mV uA V V V V uA uA uA uA pF mA
1
Refer to Section A.1.4, "Current Injection" for more information.
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 227
Electrical Characteristics
A.1.10
Supply Currents
This section describes the current consumption characteristics of the device as well as the conditions for the measurements.
A.1.10.1
Measurement Conditions
All measurements are without output loads. Unless otherwise noted the currents are measured with internal voltage regulator enabled and a 40 MHz oscillator in standard Pierce mode. Production testing is performed using a square wave signal at the EXTAL input.
Table A-8. Supply Current Characteristics
Conditions are shown in Table A-4 unless otherwise noted Num C 1 Rating -40C 25C 70C 85C 100C 105C 120C 125C 140C Symbol IDD5 Min Typ Max 49.901 50.563 TBD TBD TBD TBD TBD TBD 51.047 Unit mA
P Run supply currents Internal regulator enabled
MFR4200 Data Sheet, Rev. 0 228 Freescale Semiconductor
Voltage Regulator (VREG)
A.2
A.2.1
Voltage Regulator (VREG)
Operating Conditions
Table A-9. Voltage Regulator - Operating Conditions
Conditions are shown in Table A-4 unless otherwise noted Num 1 2 3 C P P P Characteristic Input Voltages Regulator Current Shutdown Mode Output Voltage Core Full Performance Mode Shutdown Mode Output Voltage OSC Full Performance Mode Shutdown Mode Low Voltage Reset3 Assert Level Power-on Reset4 Assert Level Deassert Level Symbol VVDDR,A IREG Min 2.97 -- Typical -- TBD Max 5.5 40 Unit V A
VDD
2.45 -- 2.35 -- 2.25 0.97 --
2.5 --1 2.5 --2 -- -- --
2.75 -- 2.75 -- -- -- 2.05
V V V V V V V
4
P
VDDOSC
5 6
P C
VLVRA VPORA VPORD
1 2
High Impedance Output High Impedance Output 3 Monitors VDD, always active 4 Monitors VDD, always active
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 229
Electrical Characteristics
A.2.2
Chip Power-up and Voltage Drops
Voltage regulator sub modules POR (power-on reset) and LVR (low voltage reset) handle chip power-up or drops of the supply voltage. Their function is described in Figure A-1. V
VDD
VLVRD VLVRA VPORD
t
POR
LVR
Figure A-1. Voltage Regulator -- Chip Power-up and Voltage Drops (not scaled)
A.2.3
A.2.3.1
Output Loads
Resistive Loads
On-chip voltage regulator intended to supply the internal logic and oscillator circuits allows no external DC loads.
A.2.3.2
Capacitive Loads
Table A-10. Voltage Regulator Recommended Capacitive Loads
The capacitive loads are specified in Figure A-10. Ceramic capacitors with X7R dielectricum are required
Num 1 3
Characteristic VDD external capacitive load VDDOSC external capacitive load
Symbol CDDext CDDOSCext
Min 200 90
Typical 440 220
Max 12000 5000
Unit nF nF
MFR4200 Data Sheet, Rev. 0 230 Freescale Semiconductor
Reset and Oscillator
A.3
Reset and Oscillator
This section summarizes the electrical characteristics of the various startup scenarios for the Oscillator.
A.3.1
Startup
Table A-11 summarizes several startup characteristics explained in this section. Detailed description of the startup behavior can be found in the MFR4200 Clock and Reset Generator (CRG) Block User Guide.
Table A-11. Startup Characteristics
Conditions are shown in Table A-4 unless otherwise noted Num 1 2 3 4 C T POR release level T POR assert level D Reset input pulse width, minimum input time D Startup from external reset negation Rating Symbol VPORR VPORA PWRSTL nPSST Min 0.97 2 25 Typ 27 Max 2.07 30 Unit V V tosc nosc
A.3.1.1
POR
The release level VPORR (see Table A-9) and the assert level VPORA (see Table A-9) are derived from the VDD Supply. They are also valid if the device is powered externally. After releasing the POR reset the oscillator is started. The fastest startup time possible is given by nuposc. There is no clock monitoring function implemented.
A.3.1.2
LVR
The assert level VLVRA (see Table A-9) is derived from the VDD Supply. The fastest startup time possible is given by nuposc. There is no clock monitoring function implemented.
A.3.1.3
External Reset
When external reset is asserted for a time greater than PWRSTL the CRG module generates an internal reset, and the CC starts operations without doing a clock quality check, if there was an oscillation before reset.
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 231
Electrical Characteristics
A.3.2
Oscillator
Table A-12. Oscillator Characteristics
The device features an internal Pierce oscillator. The device does not have a clock monitor.
Conditions are shown in Table A-4 unless otherwise noted Num C 1 2 3 6 7 8 9 10 11 12
1
Rating
Symbol fOSC iOSC tUPOSC fEXT tEXTL tEXTH tEXTR tEXTF CIN VDCBIAS
Min 0.5 100 0.5 9.5 9.5 -
Typ 7 TBD
Max 40 TBD 50 1 1 -
Unit MHz A ms MHz ns ns ns ns pF V
C Crystal oscillator range (Pierce) 1 P Startup Current C Oscillator start-up time P External square wave input frequency D External square wave pulse width low D External square wave pulse width high D External square wave rise time D External square wave fall time D Input Capacitance (EXTAL, XTAL pins) C DC Operating Bias in Pierce mode on EXTAL Pin
Depending on the crystal a damping series resistor might be necessary
A.4
AMI Interface Timing Diagram
The CC AMI Interface read/write timing diagram is shown on the Figure A-2. * Writing to the device is accomplished when Chip Enable(CE#) and Write Enable (WE#) inputs are low (asserted). * Reading from the device is accomplished when Chip Enable (CE#) and Output Enable (OE#) are low (asserted) while the Write Enable (WE#) is high (negated). * The input/output pins (D[15:0]) are in a high-impedance state when the device is not selected (CE# is high), the outputs are disabled (OE# is high) or during a write operation (CE# is low, WE# is low).
MFR4200 Data Sheet, Rev. 0 232 Freescale Semiconductor
AMI Interface Timing Diagram
tRC tACE CE# tSAR A[9..1] tHAR ADDRESS valid tDOE OE# tLZOE D[15..0] High-Z tHZOE DATA valid "1" High-Z tLOE tHOE tOEH
WE#
READ CYCLE tWC tSCE CE# tSAW A[9..1] tPWE WE# tHAW tCEWE
ADDRESS valid tWEH
D[15..0]
High-Z
DATA valid tSD tHD
High-Z
OE#
"1"
WRITE CYCLE
Figure A-2. AMI Interface Read and Write Timing Diagrams
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 233
Electrical Characteristics
tOEWE CE#
A[9..1] OE# D[15..0] WE#
ADDRESS valid
ADDRESS valid
"1" High-Z High-Z HighZ
DATA valid "1"
DATA valid
READ CYCLE
WRITE CYCLE
Figure A-3. AMI Interface Write-after-Read Transactions Timing Diagram
tWEOE CE# A[9..1] WE# D[15..0]
HighZ
ADDRESS valid
ADDRESS valid "1"
DATA valid "1"
High-Z
DATA valid
High-Z
OE#
WRITE CYCLE
READ CYCLE
Figure A-4. AMI Interface Read-after-Write Transactions Timing Diagram
MFR4200 Data Sheet, Rev. 0 234 Freescale Semiconductor
AMI Interface Timing Diagram
Table A-13. AMI Interface AC Switching Characteristics over the Operating Range
Characteristic Symbol Read Cycle Read Time Cycle Address Setup Read Address Hold Read OE# LOW to Data valid OE# high time OE# low time OE# LOW to Low-Z OE# HIGH to High-Z OE# HIGH to CE# HIGH WE# HIGH to OE# LOW tRC tSAR tHAR tDOE tHOE tLOE tLZOE tHZOE tOEH tWEOE Write Cycle Write Time Cycle Address Setup Write Address Hold Write CE# LOW to Write End Data Set-up to Write End Data Hold from Write End WE# Pulse Width WE# high time Write End to CE# high OE# HIGH to WE# LOW tWC tSAW tHAW tSCE tSD tHD tPWE tWEH tCEWE tOEWE 50 30 5 50 30 5 30 55 30 15 ns ns ns ns ns ns ns ns ns ns 155 5 50 30 150 20 0 80 145 15 ns ns ns ns ns ns ns ns ns ns Min Max Unit
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 235
Electrical Characteristics
A.5
HCS12 Interface Timing Diagram
The HCS12 device external bus is synchronous with clock frequency up to 8 MHz. Signals are sampled on the both ECLK# edges (see Figure A-5). The HCS12 host addresses the CC as a slow memory device. Due to that the HCS12 ECLK external clock signal must be stretched. In the MFR4200 the output ECLK clock must be stretched by 3 periods of the HCS12 internal bus-rate clock. The CC HCS12 Interface read/write timing diagram is shown in Figure A-5. For more information regarding the HCS12 and HCS12 programming, refer to the HCS12 V1.5 core user guide, available at http://www.freescale.com/files/microcontrollers/doc/ref_manual/S12CPU15UG.pdf.
1 ECLK 4 2
3 (x)Addr/Data (write) data (x)addr
5 data
6
7 R/W
8
9
10 (x)Addr/Data (read) data
11 (x)addr
12
13
14
15
data
ACS
ACS
20 LSTRB
21
22
Figure A-5. HCS12 Interface Read/write Timing Diagram
MFR4200 Data Sheet, Rev. 0 236 Freescale Semiconductor
HCS12 Interface Timing Diagram
Table A-14. HCS12 Interface Timing Parameters
Num 1 2 3,11 4 5 6(4) 7 8 9 10 12 13 14 15 20 21 22
1
Rating Pulse width, ECLK Low Pulse width, ECLK High Address valid time to E rise4 Write data delay time ECLK rise to write data invalid Write data hold time RW delay time RW valid time to ECLK rise RW hold time Data hold to address Multiplexed address hold time ECLK high access time (ECLK high to Read Data valid) Read data setup time Read data hold time Low strobe delay time Low strobe valid to ECLK rise Low strobe hold time 1/CC_CLK 4/CC_CLK 3/CC_CLK 2/CC_CLK -
Min {25}2 3 {100}+[14] 11 {75}-[4] 2 14 2 2 2 {50} 13 0 14 2 -
Max 7 7 {75} 7 -
Units ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns
Restriction1 CC CC HCS12 HCS12 CC HCS12 HCS12 HCS12 HCS12 HCS12 HCS12 CC HCS12 HCS12 HCS12 HCS12 HCS12
3/CC_CLK -
Column Restriction: - CC limitation by the Communication Controller but complies to HCS12. - HCS12 limitation because of HCS12 specification.
2 3 4
{ .. } - values in ns if the CC_CLK = 40 MHz.
If the parameter is not met then ECLK signal deassertion cannot be sampled and the write/read window cannot be calculated. (X)Addr and LSTRB are taken over by the controller with the rising edge of the ECLK.
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 237
Electrical Characteristics
MFR4200 Data Sheet, Rev. 0 238 Freescale Semiconductor
64-pin LQFP package
Appendix B Package Information
B.1 64-pin LQFP package
Figure B-1. 64-pin LQFP Mechanical Dimensions (Case N 840F-02) (Page 1)
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 239
Package Information
Figure B-2. 64-pin LQFP Mechanical Dimensions (Case N 840F-02) (Page 2)
MFR4200 Data Sheet, Rev. 0 240 Freescale Semiconductor
64-pin LQFP package
Figure B-3. 64-pin LQFP Mechanical Dimensions (Case N 840F-02) (Page 3)
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 241
Package Information
MFR4200 Data Sheet, Rev. 0 242 Freescale Semiconductor
64-pin LQFP package
Appendix C Printed Circuit Board Layout Recommendations
The PCB must be laid out carefully to ensure proper operation of the voltage regulator and the CC. The following rules must be observed: * Every supply pair must be decoupled by a ceramic capacitor connected as near as possible to the corresponding pins (Cd). * The central point of the ground star should be the VSSR pin. * Low-ohmic low-inductance connections should be used between VSSX and VSSR. * VSSOSC must be directly connected to VSSR. * Traces of VSSOSC, EXTAL and XTAL must be kept as short as possible. Occupied board area for C1, C2, C3 and Q should be as small as possible. * Other signals or supply lines should not be routed under the area occupied by C1, C2, C3, and Q and the connection area of the CC. * The central power input should be fed in at the VDDA/VSSA pins. Figure C-1 shows a recommended PCB layout (64-pin LQFP) for standard Pierce oscillator mode, while Table C-1 provides suggested values for the external components.
Table C-1. Suggested External Component Values
Component C1 C2 C3 C4 Cd Cload RB RS Q Purpose OSC load cap OSC load cap VDDOSC filter cap VDDA filter cap VDDR, VDDX filter cap VDD2_5 filter cap OSC res OSC res Quartz NDK NX8045GA Type ceramic X7R ceramic X7R ceramic X7R ceramic X7R ceramic X7R/tantalum ceramic X7R Value 2pF 2pF 100- 220nF 100- 220nF 100- 220nF 100- 220nF 1 MOhm 0 Ohm (i.e. short-circuit_ 40 MHz
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 243
Printed Circuit Board Layout Recommendations
Figure C-1. Recommended PCB Layout (64-pin LQFP) for Standard Pierce Oscillator Mode
MFR4200 Data Sheet, Rev. 0 244 Freescale Semiconductor
Appendix C MFR4200 Protocol Implementation Document
C.1
C.1.1
Introduction
Purpose
This document is an appendix to the MFR4200 FlexRay Microcontroller data sheet (MFR4200V2). It describes the FlexRay protocol implementation in the MFR4200.
C.1.2
Structure
This appendix follows the structure of the FlexRay Communications System Protocol Specification V1.1 (PS V1.1). Each section explains whether the implementation in the MFR4200 is identical to the PS V1.1 or is realized with an intermediate solution. Where only the section headline is provided, the implementation is compliant with the PS V1.1.
C.1.3
References
1. FlexRay Communications System Protocol Specification V1.1 (intermediate consortium baseline) (PS V1.1/PWD) 2. MFR4200 FlexRay Microcontroller Data Sheet (MFR4200V2)
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 245
MFR4200 Protocol Implementation Document
C.2
Overall Protocol State Machine
The MFR4200 implements the overall protocol state machine according to PS V1.1/PWD, with differences presented below.
Protocol Operation Control (POC)
initiate hardware
CONFIG
host: wakeup WAKEUP
host: config complete take over config data CODEC on A (INIT), CODEC on B (INIT), FSP control on A (INIT), FSP control on B (INIT), MAS control on A (INIT), MAS control on B (INIT), CSP control (INIT)
reset status information STARTUP pSyncSlot ? CODEC on A (NORMAL), CODEC on B (NORMAL), FSP control on A (GO), FSP control on B (GO), MAS control on A (ALL), MAS control on B (ALL), CSP control (SYNC) else =0 CODEC on A (NORMAL), CODEC on B (NORMAL), FSP control on A (GO), FSP control on B (GO), MAS control on A (ALL), MAS control on B (ALL), CSP control (NOSYNC)
vClockCorrectionFailedCounter:=0
NORMAL_ACTIVE
Figure C-1. Protocol Operation Control (POC) - 1
MFR4200 Data Sheet, Rev. 0 246 Freescale Semiconductor
Overall Protocol State Machine
not implemented for FPGA V8.x
*
low voltage hardware reset activated transmitter off
NORMAL_ACTIVE, NORMAL_PASSIVE cycle start (zCycleCounter)
-
* (freeze)
host: freeze internal error
* host: config transmitter off
transmitter off CONFIG FREEZE red state host: config
CONFIG
Figure C-2. Protocol Operation Control (POC) - 2
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 247
MFR4200 Protocol Implementation Document
vClockCorrectionFailed:=0
NORMAL_ACTIVE ClockSyncState(zClockState, zStartupPairs, zRefPair) even SUCCESSFUL zClockState ? MISSING_RATE LIMIT_REACHED zCycleCounter ? odd
vClockCorrectionFailed := vClockCorrectionFailed + 1 vClockCorrectionFailed ? else else vClockCorrectionFailed ? >= gMaxWithoutClockCorrectionPassive false CODEC on A (NORMAL), CODEC on B (NORMAL), FSP control on A (GO), FSP control on B (GO), MAS control on A (NOCE), MAS control on B (NOCE), CSP control (NOSYNC) pAllowFreezeDueToClock ? true CODEC on A (INIT), CODEC on B (INIT), FSP control on A (INIT), FSP control on B (INIT), MAS control on A (INIT), MAS control on B (INIT), CSP control (INIT) >= gMaxWithoutClockCorrectionFatal
NORMAL_PASSIVE
READY
Figure C-3. POC -- Normal Operation
MFR4200 Data Sheet, Rev. 0 248 Freescale Semiconductor
Coding and Decoding
NORMAL_PASSIVE ClockSyncState(zClockState, StartupPairs, zRefPair) even zCycleCounter ?
odd
MISSING_RATE
zClockState ? LIMIT_REACHED
SUCCESSFUL vClockCorrectionFailed := 0 pAllowPassiveToFreeze ? true >1 zStartupNodes? =1 pStartupNode? false false
vClockCorrectionFailed ? < gMaxWithoutClockCorrectionFatal vClockCorrectionFailed := vClockCorrectionFailed + 1; vClockCorrectionFailed ? < gMaxWithoutClockCorrectionFatal
else
else
false
pAllowFreezeDueToClock ? true
true
CODEC on A (INIT), CODEC on B (INIT), FSP control on A (INIT), FSP control on B (INIT), MAS control on A (INIT), MAS control on B (INIT), CSP control (INIT) FREEZE CODEC on A (NORMAL), CODEC on B (NORMAL), FSP control on A (GO), FSP control on B (GO), MAS control on A (ALL), MAS control on B (ALL), CSP control (SYNC)
pSyncSlot ? else
=0
NORMAL_ACTIVE
CODEC on A (NORMAL), CODEC on B (NORMAL), FSP control on A (GO), FSP control on B (GO), MAS control on A (ALL), MAS control on B (ALL), CSP control (NOSYNC)
Figure C-4. POC -- Passive Operation
C.3
Coding and Decoding
The implementation is compliant with PS V1.1, with the exception that the wakeup symbol is not detected.
C.3.1
Overview
The implementation is compliant with PS V1.1.
C.3.2
NRZ Coding
The implementation is compliant with PS V1.1.
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 249
MFR4200 Protocol Implementation Document
C.3.3
NRZ Decoding
The implementation is compliant with PS V1.1.
C.3.3.1
NFZ Decoding Principles
The implementation is compliant with PS V1.1.
C.3.3.2
Frame Decoding
The implementation is compliant with PS V1.1.
C.3.3.3
Symbol Decoding
The implementation is compliant with PS V1.1. C.3.3.3.1 Collision Resolution Symbol
The implementation is compliant with PS V1.1. C.3.3.3.2 Wakeup Symbol
MFR4200 can generate a wakeup symbol in accordance with Section C.3.2, "NRZ Coding". However, the implementation does not recognize a wakeup symbol. See also Section C.7.2, "Cluster Wakeup".
C.3.3.4
Decoding Error
The implementation is compliant with PS V1.1.
C.3.4
Signal Integrity
The implementation is compliant with PS V1.1.
C.4
Frame Format
NOTE The semantic of the null frame bit has been inverted compared with previous implementations, to be compliant with PS V1.1.
The implementation is compliant with PS V1.1.
C.5
Media Access Control
NOTE Due to the implementation, there is a lower boundary gdNIT (see Section 3.2.3.3.18, "Network Idle Time Configuration Register (NITCR).
The implementation is compliant with PS V1.1.
MFR4200 Data Sheet, Rev. 0 250 Freescale Semiconductor
Frame and Symbol Processing
C.6
Frame and Symbol Processing
The implementation is compliant with PS V1.1, with the following exceptions. * STUP is not indicated to the host. * Data received during startup is not provided to the host.
C.7
C.7.1
Wakeup, Startup, and Reintegration
Introduction
The implementation is compliant with PS V1.1.
C.7.2
Cluster Wakeup
The functionality of the wakeup is implemented in part only. The controller can generate wakeup symbols on configurable channels and repeat them for a configurable number of times in accordance with WAKEUP SEND. WAKEUP LISTEN is not implemented. After completing WAKEUP SEND, the controller returns to the CONFIG state.
C.7.3
Communication Startup and Reintegration
Clearing the coldstart inhibit bit after leaving 'PC_RESET' is not supported in MFR4200. This applies for the following subsections.
C.7.3.1
Definitions and Properties
The implementation is compliant with PS V1.1.
C.7.3.2
Principle of Operation
The implementation is compliant with PS V1.1.
C.7.3.3
Coldstart Inhibit Mode
The implementation is compliant with PS V1.1.
C.7.3.4
Startup State Diagram
The implementation is compliant with PS V1.1. However, the protocol state indicated in the host interface is incorrect for a short time, in the following case: When the node has unsuccessfully performed a coldstart, and the number of remaining coldstart attempts is 0, the host interface indicates that the controller has entered the coldstart listen state, and will change to the integration listen state only after approximately one macrotick.
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 251
MFR4200 Protocol Implementation Document
Moreover, in Figure 7-6 (PS V1.1), and in similar drawings for nodes B and C, the state Initialize schedule lasts until the end of the communication cycle, rather than changing in the middle of the cycle.
C.8
C.8.1
Clock Synchronization
Introduction
The implementation is compliant with PS V1.1.
C.8.2
Time Representation
The implementation is compliant with PS V1.1.
C.8.3
Synchronization Process
Figure 8-3 (PS V1.1): In MFR4200 the measurement tables are initialized during the NIT (before cycle start, rather than after the cycle start). The entries for the even cycle are initialized in the NIT of the odd cycle. Likewise, the measurements of the odd cycle are initialized in the NIT of the even cycle.
C.8.4
Clock Startup
The implementation is compliant with PS V1.1.
C.8.5
Time Measurement
The implementation is compliant with PS V1.1. However, note that the clock sync measurement values indicated in the host interface are different from the example shown in Figure 8-8 (PS V1.1).
C.8.5.1
Data Structure
The implementation is compliant with PS V1.1.
C.8.5.2
Initialization
In MFR4200, the table for the odd cycle measurements is initialized in the NIT of the even cycle, and vice versa, rather than after the beginning of the even cycle.
C.8.6
Correction Term Calculation
Figure 8-13 (PS V1.1): MFR4200 differs slightly from this description. Startup frames are counted on a per channel basis, with one counter for each channel, rather than one counter for both channels. For evaluation, the maximum is taken, rather than counting a startup frame on either channel with a single counter. Moreover, in MFR4200, the check of vOffsetCorrection is performed before the external offset correction, rather than after external offset correction.
MFR4200 Data Sheet, Rev. 0 252 Freescale Semiconductor
Controller Host Interface
Figure 8-14 (PS V1.1): In MFR4200 the check of vRateCorrection is performed before the external offset correction rather than after external rate correction.
C.8.7
Clock Correction
Figure 8-15 (PS V1.1): The implementation in MFR4200 is compliant with the red text in the middle of the diagram. Moreover, when macrotick counting is reset, the host interface indication of vMacrotick is immediately reset to 0, as soon as the macrotick counting is reset; however, internally, the macrotick generation continues for a short time in accordance with the specification.
C.8.8
Sync Frame Configuration Rules
Table 8-3 (PS V1.1): MFR4200 supports up to 16 sync frames, rather than 15.
C.9
Controller Host Interface
The implementation of the host interface is compliant with the specification in PS V1.1. The implementation supports the following features: * Message filtering -- Frame ID filtering -- Cycle counter filtering -- Channel filtering -- Message ID filtering (FIFO only) * Message FIFO (receive FIFO) * Timer * Error signalling * Host interrupts -- Timer interrupt -- Error signaling interrupt * Network management vector
C.10
Device Specific Power Modes
MFR4200 supports supervision of voltage levels, and performs a reset when the supply voltage drops below a boundary specified in Chapter 5, "Clocks and Reset Generator. A low power mode or sleep mode is not supported.
C.11
Bus Guardian Schedule Monitoring
The implementation is compliant with PS V1.1.
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 253
MFR4200 Protocol Implementation Document
C.12
C.12.1
System Parameters and Configuration Constraints
System Parameters
System parameters are used primarily for the protocol description and are not protocol mechanisms. Therefore, they are almost transparent to the user in the MFR4200 implementation. The only difference from PS V1.1 that is relevant to the user is as follows. * cSyncNodeMax is fixed at 16. NOTE Parameters relating to unsupported features are not mentioned here.
C.12.2
Configuration Constraints
The implementation requires most of the constraints specified in PS V1.1 to be fulfilled. Exceptions are bit rate configuration and bit sample clock frequency, which are configurable in a wider range than described in PS V1.1. NOTE However, while fulfilling these configuration constraints is necessary, it is not sufficient for a valid configuration.
MFR4200 Data Sheet, Rev. 0 254 Freescale Semiconductor
Appendix D Index of Registers
A Active FIFO Buffer Cycle Counter and Payload Length Register (AFBCCPLR) 132 Active FIFO Buffer Data n Register (AFBDATAnR) 133 Active FIFO Buffer Frame ID Register (AFBFRID) 131 Active FIFO Buffer Header CRC Register (AFBCRCR) 132 Active FIFO Buffer Message Buffer Slot Status Vector Register (AFBMBSSVR) 133 Active Receive Buffer Cycle Counter and Payload Lenth Register (ARBCCPLR) 129 Active Receive Buffer Data n Register (ARBDATAnR) 130 Active Receive Buffer Frame ID Register (ARBFRID) 129 Active Receive Buffer Header CRC Register (ARBCRCR) 130 Active Receive Buffer Message Buffer Slot Status Vector Register (ARBMBSSVR) 131 Active Transmit Buffer Cycle Counter and Payload Length Register (ATBCCPLR) 127 Active Transmit Buffer Data n Register (ATBDATAnR) 128 Active Transmit Buffer Frame ID Register (ATBFRID) 126 Active Transmit Buffer Header CRC Register (ATBCRCR) 127 Active Transmit Buffer Message Buffer Slot Status Vector Register (ATBMBSSVR) 128
B Bit Duration Register (BDR) 71 Buffer Control, Configuration and Status n Register (BUFCSnR) 126 Bus Guardian Status Register (BGSR) 99 Bus Guardian Tick Register (BGTR) 87
C Channel Status Error Counter n Register (CSECnR) 102 CHI Error Register (CHIER) 109 Clock Correction Failed Counter Register (CCFCR) 113 Cluster Drift Damping Register (CDDR) 73 Cold Start Maximum Register (CSMR) 84 Current Cycle Counter Value Register (CCCVR) 94 Current Macrotick Counter Value Register (CMCVR) 94 Cycle Counter Filter n Register (CCFnR) 135 Cycle Length Register (CLR) 80
D Debug Port Control Register (DBPCR) 88 Delay Compensation Channel A Register (DCAR) 72
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 255
Index of Registers
Delay Compensation Channel B Register (DCBR) 72 Delay Counter Register (DCR) 87
E Error Handling Level Register (EHLR) 113 Even Measurement channel A n Register (EMAnR) 122 Even Measurement channel B n Register (EMBnR) 123 Even Measurement Counter Register (EMCR) 124 Even Sync Frame ID n Register (ESFIDnR) 121 External Correction Control Register (ECCR) 82 External Offset Correction Register (EOCR) 81 External Rate Correction Register (ERCR) 82
F FIFO Acceptance Filter Message ID Mask Register (FAFMIDMR) 136 FIFO Acceptance Filter Message ID Value Register (FAFMIDVR) 136 FIFO Acceptance/Rejection Filter Channel Register (FAFCHR) 137 FIFO Rejection Filter Frame ID Mask Register (FRFFIDMR) 138 FIFO Rejection Filter Frame ID Value Register (FRFFIDVR) 138 FIFO Size Register (FSIZR) 125
G Global Network Management Vector n Register (GNMVnR) 96
H Host Interface and Physical Layer Pins Drive Strength Register (HIPDSR) 67 Host Interface Pins PullUp/Down Control Register (HIPPCR) 69 Host Interface Pins PullUp/Down Enable Register (HIPPER) 68
I Idle Detection Length Register (IDLR) 90 Interrupt Enable Register 0 (IER0) 103 Interrupt Status Register 0 (ISR0) 114
L Latest Dynamic Transmission Start Register (LDTSR) 78 Listen timeout with Noise Length Register (LNLR) 92
MFR4200 Data Sheet, Rev. 0 256 Freescale Semiconductor
M Magic Number Register (MNR) 63 Maximum Cycle Length Deviation Register (MCLDAR) 81 Maximum Odd Cycles Without Clock Correction Fatal Register (MOCWCFR) 101 Maximum Odd Cycles Without clock Correction Passive Register (MOCWCPR) 101 Maximum Offset Correction Register (MOCR) 83 Maximum Payload Length Dynamic Register (MPLDR) 79 Maximum Rate Correction Register (MRCR) 84 Maximum Sync Frames Register (MSFR) 73 Microticks per Cycle High Register (MPCHR) 75 Microticks per Cycle Low Register (MPCLR) 74 Minislot Action Point Offset Register (MSAPOR) 77 Minislot Length Register (MSLR) 77 Module Configuration Register 0 (MCR0) 64 Module Configuration Register 1 (MCR1) 66 Module Version Register 0 (MVR0) 62 Module Version Register 1 (MVR1) 62
N Network Idle Time Configuration Register (NITCR) 80 Network Management Vector Length Register (NMVLR) 85 Nominal Macrotick Length Register (NMLR) 74 Number of Static Slots Register (NSSR) 76
O Odd Measurement channel A n Register (OMAnR) 121 Odd Measurement channel B n Register (OMBnR) 122 Odd Measurement Counter Register (OMCR) 124 Odd Sync Frame ID n Register (OSFIDnR) 120 Offset Correction Value Register (OCVR) 95
P Physical Layer Pins Drive Strength Register (PLPDSR) 68 Physical Layer Pins PullUp/Down Control Register (PLPPCR) 70 Physical Layer Pins PullUp/Down Enable Register (PLPPER) 69 Protocol State Register (PSR) 93
R Rate Correction Value Register (RCVR) 95 Receive Buffer Interrupt Vector Register (RBIVECR) 108
MFR4200 Data Sheet, Rev. 0 Freescale Semiconductor 257
Index of Registers
S Slot Status Counter Condition n Register (SSCCnR) 105 Slot Status Counter Incrementation Register (SSCIR) 107 Slot Status Counter Interrupt Mask Register (SSCIMR) 107 Slot Status Counter n Register (SSCnR) 104 Slot Status n Register (SSnR) 119 Slot Status Selection n Register (SSSnR) 103 Start of Offset Correction Cycle Time Register (SOCCTR) 89 Startup Interrupt Enable Register (SIER) 100 Startup Interrupt Status Register (SISR) 118 Static Payload Length Register (SPLR) 76 Static Slot Action Point Offset Register (SSAPOR) 78 Static Slot Length Register (SSLR) 75 Symbol Window Configuration Register (SWCR) 79 Symbol Window Control Register (SWCTRLR) 90 Symbol Window Status channel A Register (SWSAR) 97 Symbol Window Status channel B Register (SWSBR) 98 Sync Frame Acceptance Filter Mask Register (SYNFAFMR) 134 Sync Frame Acceptance Filter Value Register (SYNFAFVR) 134 Sync Frame Header Register (SYNCHR) 86 Sync Frame Register (SYNCFR) 86 Sync Frame Rejection Filter Register (SYNFRFR) 135
T Timer Interrupt Configuration Register 0 Cycle Set (TICR0CS) 139 Timer Interrupt Configuration Register 0 Macrotick Offset (TICR0MO) 140 Timer Interrupt Configuration Register 1 Cycle Set (TICR1CS) 140 Timer Interrupt Configuration Register 1 Macrotick Offset (TICR1MO) 141 Transmit Buffer Interrupt Vector Register (TBIVECR) 109 Transmit Start Sequence Length Register (TSSLR) 85
V Voltage Regulator Status Register (VREGSR) 70
W Wakeup Mechanism Control Register (WMCTRLR) 91 Wakeup Symbol TX Idle Register (WUSTXIR) 91 Wakeup Symbol TX Low Register (WUSTXLR) 92
MFR4200 Data Sheet, Rev. 0 258 Freescale Semiconductor
How to Reach Us:
Home Page: www.freescale.com E-mail: support@freescale.com USA/Europe or Locations Not Listed: Freescale Semiconductor Technical Information Center, CH370 1300 N. Alma School Road Chandler, Arizona 85224 +1-800-521-6274 or +1-480-768-2130 support@freescale.com Europe, Middle East, and Africa: Freescale Halbleiter Deutschland GmbH Technical Information Center Schatzbogen 7 81829 Muenchen, Germany +44 1296 380 456 (English) +46 8 52200080 (English) +49 89 92103 559 (German) +33 1 69 35 48 48 (French) support@freescale.com Japan: Freescale Semiconductor Japan Ltd. Headquarters ARCO Tower 15F 1-8-1, Shimo-Meguro, Meguro-ku, Tokyo 153-0064, Japan 0120 191014 or +81 3 5437 9125 support.japan@freescale.com Asia/Pacific: Freescale Semiconductor Hong Kong Ltd. Technical Information Center 2 Dai King Street Tai Po Industrial Estate Tai Po, N.T., Hong Kong +800 2666 8080 support.asia@freescale.com For Literature Requests Only: Freescale Semiconductor Literature Distribution Center P.O. Box 5405 Denver, Colorado 80217 1-800-441-2447 or 303-675-2140 Fax: 303-675-2150 LDCForFreescaleSemiconductor@hibbertgroup.com
Information in this document is provided solely to enable system and software implementers to use Freescale Semiconductor products. There are no express or implied copyright licenses granted hereunder to design or fabricate any integrated circuits or integrated circuits based on the information in this document. Freescale Semiconductor reserves the right to make changes without further notice to any products herein. Freescale Semiconductor makes no warranty, representation or guarantee regarding the suitability of its products for any particular purpose, nor does Freescale Semiconductor assume any liability arising out of the application or use of any product or circuit, and specifically disclaims any and all liability, including without limitation consequential or incidental damages. "Typical" parameters that may be provided in Freescale Semiconductor data sheets and/or specifications can and do vary in different applications and actual performance may vary over time. All operating parameters, including "Typicals", must be validated for each customer application by customer's technical experts. Freescale Semiconductor does not convey any license under its patent rights nor the rights of others. Freescale Semiconductor products are not designed, intended, or authorized for use as components in systems intended for surgical implant into the body, or other applications intended to support or sustain life, or for any other application in which the failure of the Freescale Semiconductor product could create a situation where personal injury or death may occur. Should Buyer purchase or use Freescale Semiconductor products for any such unintended or unauthorized application, Buyer shall indemnify and hold Freescale Semiconductor and its officers, employees, subsidiaries, affiliates, and distributors harmless against all claims, costs, damages, and expenses, and reasonable attorney fees arising out of, directly or indirectly, any claim of personal injury or death associated with such unintended or unauthorized use, even if such claim alleges that Freescale Semiconductor was negligent regarding the design or manufacture of the part.
FreescaleTM and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. The ARM POWERED logo is a registered trademark of ARM Limited. ARM7TDMI-S is a trademark of ARM Limited. Java and all other Java-based marks are trademarks or registered trademarks of Sun Microsystems, Inc. in the U.S. and other countries. The Bluetooth trademarks are owned by their proprietor and used by Freescale Semiconductor, Inc. under license. (c) Freescale Semiconductor, Inc. 2004. All rights reserved. MFR4200 Rev. 0 8/2005


▲Up To Search▲   

 
Price & Availability of MFR4200

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X